Flint Particle System Forum - Change the color on the fly?2011-06-23T17:01:08+01:00http://flintparticles.org/forum/
Lussumo Vanilla & Feed Publisher
Change the color on the fly?http://flintparticles.org/forum/comments.php?DiscussionID=71&Focus=331#Comment_3312008-08-28T11:19:28+01:002011-06-23T17:01:08+01:00GertjanShttp://flintparticles.org/forum/account.php?u=60
Hi,
I would like to set the color of my sharedImage when ever I want. How do I do this?
thx
I would like to set the color of my sharedImage when ever I want. How do I do this?
thx]]>
Change the color on the fly?http://flintparticles.org/forum/comments.php?DiscussionID=71&Focus=333#Comment_3332008-08-29T07:59:03+01:002011-06-23T17:01:08+01:00Richardhttp://flintparticles.org/forum/account.php?u=1
Hi
The main way to change the color of a particle is by setting the color property of the particle, normally using an action or initializer that changes the color like colorChange and colorInit. ...
The main way to change the color of a particle is by setting the color property of the particle, normally using an action or initializer that changes the color like colorChange and colorInit. This doesn't change the original image, but rather will affect each particle according to the color set for each. The color is applied as a color transform to the particle's image when rendering it.
The particle's color property only maps accurately if the base image for the particle is white - for display objects of other colors the color property of the particle will tint them but it won't produce an accurate color match.]]>
Change the color on the fly?http://flintparticles.org/forum/comments.php?DiscussionID=71&Focus=344#Comment_3442008-09-01T14:59:14+01:002008-09-01T14:59:45+01:00axel012345http://flintparticles.org/forum/account.php?u=24
Hi
I had the same problem, i create a class ColorChange ( startColor : Array, endColor : Array , energyRatio : Array ) .
You use it like this :
new ColorChange (
[ ...
I had the same problem, i create a class ColorChange ( startColor : Array, endColor : Array , energyRatio : Array ) . You use it like this : new ColorChange ( [ color1, color2, color3] , [ color2, color3, color4] , [ 0.6 , 0.9 , 1 ] ); So during 0.6 percent of the particle life will fade from color1 to color2 , during 0,3 from color2 to color3 and 0,1 from color3 to color4.