Re: [Flashcoders] Color to black white

2008-03-18 Thread Sidney de Koning
Oh and to reset an image to its normal color again you apply an new  
matrix like this:

var originalColour:Array =  [
1,0,0,0,0,
0,1,0,0,0,
0,0,1,0,0,
0,0,0,1,0
];
And if you like here is a matrix for sepia, because i know this stuff  
is hard to find:


var sepiaColors:Array = [
0.393, 0.769, 0.189,0,0,
0.349, 0.686, 0.168,0,0,
0.272, 0.534, 0.131,0,0,
0,0,0,1,0
];  

Have fun playing around,

Sid

On Mar 18, 2008, at 3:40 AM, laurent wrote:


Hi,

What would you suggest to make an image go from color to black and  
white ?


thanks.
Laurent
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Color to black white

2008-03-18 Thread Sidney de Koning

You can use a color matrix like this:

// Flash Imports
import flash.filters.ColorMatrixFilter;

var greys:Array =   [
0.3086,0.6094,0.082,0,0,
0.3086,0.6094,0.082,0,0,
0.3086,0.6094,0.082,0,0,
0,0,0,1,0
];
var greyscale:ColorMatrixFilter;
greyscale = new ColorMatrixFilter(greys);
var tmp:MovieClip;
tmp = someClip_mc;
tmp.filters = [greyscale];

setGreyScaleColor(tmp, greyscale, greyscale);

function setGreyScaleColor(theClip:MovieClip, theColor,  
filterType:String)

{
theClip.filters = [theColor];
this.filterType = filterType;
}

So there you have it :)

Sid

On Mar 18, 2008, at 3:40 AM, laurent wrote:


Hi,

What would you suggest to make an image go from color to black and  
white ?


thanks.
Laurent
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Color to black white

2008-03-17 Thread laurent

Hi,

What would you suggest to make an image go from color to black and white ?

thanks.
Laurent
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Color to black and white

2008-03-17 Thread laurent

ok, got it in filters :)
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Color Picker/chooser Component

2007-04-12 Thread Mick G

Just on the look out for a color picker component (the palette kind, not an
eyedropper) that allows me to SET a color to the chooser as well as from.
eg. Send a color to the component and have it update with the color I send.

All I can find is picker components send colors out of the component, but
don't take colors in.
___
[EMAIL PROTECTED]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] color

2006-10-19 Thread Laurent CUCHET
Hello,

I draw a rectangle with AS2 and I would like to change color of the fill.
Not in one time but in several time as a motion.

Have you got an Idea to ?

Thank you very much

var mcc:MovieClip = this.createEmptyMovieClip(mcc, 5000);
MovieClip.prototype.drawRectangle = function(w, h) {
this.clear();
this.lineStyle(1, 0xFF, 100, true, none, square, miter, 5001);
this.beginFill(0xCC, 100);
this.lineTo(w, 0);
this.lineTo(w, h);
this.lineTo(0, h);
this.lineTo(0, 0);
this.endFill();
};
mcc.drawRectangle(1550, 400);
_root.mcc._x = -500;
_root.mcc._y = 0;
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Color

2006-09-18 Thread Laurent CUCHET
Hello,

I apply a color but I dont know how to suppress the tranform

Have you got an idea ?

Thank you

al_mc.onRollOver = function() {
_root.reg.text = Alsace;
var my_color1:Color = new Color(this._name);
myValue1 = 0xFFF;
my_color1.setRGB(myValue1);
};
al_mc.onRollOut = function() {
_root.reg.text = Alsace;
var my_color1:Color = new Color(this._name);
myValue1 = ;
my_color1.setRGB(myValue1);
};
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Color

2006-09-18 Thread Arul Prasad M L

al_mc.onRollOver = function() {
  _root.reg.text = Alsace;
  var my_color1:Color = new Color(this._name);
 this.defaultColor = this.getRGB();
  myValue1 = 0xFFF;
  my_color1.setRGB(myValue1);
};
al_mc.onRollOut = function() {
  _root.reg.text = Alsace;
  var my_color1:Color = new Color(this._name);
  my_color1.setRGB( this.defaultColor );
};


~Arul Prasad

On 9/18/06, Laurent CUCHET [EMAIL PROTECTED] wrote:


Hello,

I apply a color but I dont know how to suppress the tranform

Have you got an idea ?

Thank you

al_mc.onRollOver = function() {
_root.reg.text = Alsace;
var my_color1:Color = new Color(this._name);
myValue1 = 0xFFF;
my_color1.setRGB(myValue1);
};
al_mc.onRollOut = function() {
_root.reg.text = Alsace;
var my_color1:Color = new Color(this._name);
myValue1 = ;
my_color1.setRGB(myValue1);
};
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] color tracking w/webcam

2006-06-09 Thread Mick G

http://www.adobe.com/devnet/flash/articles/webcam_motion.html


On 6/9/06, Ian Tilley [EMAIL PROTECTED] wrote:




Hi Weyert

I did something a year or so ago using webcamxtra Xtra for Director and
Flash 7. I'd like to do it again in Flash 8 at some point as I think
bitmap caching would improve performance, for what I needed, greatly.
JMyron is another solution but I didn't get near that.

t.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Weyert
de Boer
Sent: Friday, 9 June 2006 3:08 AM
To: Flashcoders mailing list
Subject: [Flashcoders]  color tracking w/webcam

Anyone aware of any kind of color tracking for Flahs 8 using the
BitmapData stuff? with source is apperciated ;-)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] color tracking w/webcam

2006-06-08 Thread Weyert de Boer
Anyone aware of any kind of color tracking for Flahs 8 using the 
BitmapData stuff? with source is apperciated ;-)

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] color tracking w/webcam

2006-06-08 Thread Ian Tilley


Hi Weyert

I did something a year or so ago using webcamxtra Xtra for Director and
Flash 7. I'd like to do it again in Flash 8 at some point as I think
bitmap caching would improve performance, for what I needed, greatly.
JMyron is another solution but I didn't get near that.

t.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Weyert
de Boer
Sent: Friday, 9 June 2006 3:08 AM
To: Flashcoders mailing list
Subject: [Flashcoders]  color tracking w/webcam

Anyone aware of any kind of color tracking for Flahs 8 using the 
BitmapData stuff? with source is apperciated ;-)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com