Flint Particle System Forum - ColorChange not working 2010-12-25T17:36:07+00:00 http://flintparticles.org/forum/ Lussumo Vanilla & Feed Publisher ColorChange not working http://flintparticles.org/forum/comments.php?DiscussionID=217&Focus=800#Comment_800 2009-06-05T14:24:21+01:00 2010-12-25T17:36:07+00:00 biasot http://flintparticles.org/forum/account.php?u=209 Hi! I modified Rain.as from examples: addInitializer( new ImageClass( RadialDot, 6, 0x000000 ) ); addInitializer( new Position( new LineZone( new Point( 0, 0 ), new Point( 0, 130 ) ) ) ... I modified Rain.as from examples:
addInitializer( new ImageClass( RadialDot, 6, 0x000000 ) );
addInitializer( new Position( new LineZone( new Point( 0, 0 ), new Point( 0, 130 ) ) ) );
addInitializer( new Velocity( new LineZone( new Point( 0, 0 ), new Point( 270, 0 ) ) ) );
// addInitializer( new ColorInit( 0xFF000000, 0xFFFFFFFF ) );
addAction(new MutualGravity(2, 10));
addInitializer(new Lifetime(0.3, 1));
addAction(new ColorChange(0xff000000,0xffffffff));
addAction(new Fade());
addAction(new Age());
addAction( new Move() );
addAction( new DeathZone( new RectangleZone( -10, -10, 270, 130 ), true ) );
addAction( new RotateToDirection() );
ColorChange is not working, regardless of ColorInit; if Fade is used then I got faded particles, if Fade is not used, then I got no visible particles :(
what I doing wrong?! ;-)]]>
ColorChange not working http://flintparticles.org/forum/comments.php?DiscussionID=217&Focus=815#Comment_815 2009-06-10T07:43:30+01:00 2010-12-25T17:36:07+00:00 Richard http://flintparticles.org/forum/account.php?u=1 The colorChange only works accurately with white particles, because it applies a color transform to the particle that will transform white to the selected color. Other colors will produce different ...
addInitializer( new ImageClass( RadialDot, 6, 0xFFFFFF ) );]]>