Flint Particle System Forum - How do the ARGB uint values for ColorChange look like? Sun, 11 Dec 2011 05:07:59 +0000 http://flintparticles.org/forum/ Lussumo Vanilla 1.1.10 & Feed Publisher How do the ARGB uint values for ColorChange look like? http://flintparticles.org/forum/comments.php?DiscussionID=51&Focus=248#Comment_248 http://flintparticles.org/forum/comments.php?DiscussionID=51&Focus=248#Comment_248 Wed, 16 Jul 2008 14:35:02 +0100 Phillip
Like 255255255 for white? ... 255255255 works, but it doesn't show white. With what formula do I calculate the required uint values? Or is it an Object containing 3/4 values? 0xffffff doesn't work at all (it makes the particles black/invisible)
The docs would to good in giving an example or two for a ARGB uint ColorChange value ...

I'm gratefull for any help.

Thanks,
Phillip ]]>
How do the ARGB uint values for ColorChange look like? http://flintparticles.org/forum/comments.php?DiscussionID=51&Focus=249#Comment_249 http://flintparticles.org/forum/comments.php?DiscussionID=51&Focus=249#Comment_249 Wed, 16 Jul 2008 17:41:38 +0100 Phillip
Here's the answer:
An exampel would be "0xFFAABBCC" as a Hex representative of the required value. Which is practical since the 1st 2 digits represent the Value in the Alpha channel (here: Transparency) and the other 3 digit-pairs the RGB values. Hence ARGB. If you're, as I was, wondering why ColorChange has no effect, it's because your particles need a Lifetime *and* have to be aging (Age) aswell.

Thanks,
Phillip ]]>
How do the ARGB uint values for ColorChange look like? http://flintparticles.org/forum/comments.php?DiscussionID=51&Focus=1277#Comment_1277 http://flintparticles.org/forum/comments.php?DiscussionID=51&Focus=1277#Comment_1277 Thu, 29 Jul 2010 08:20:08 +0100 Ubuntu The following works on a BitmapRenderer:
var color1:uint;
var color2:uint;
color1 = colorcomponent1.selectedColor;
color2 = colorcomponent2.selectedColor;
emitter.addInitializer( new ColorInit( color1, color2));

The following DOESNT work on a Pixelrenderer:
var color1:uint;
var color2:uint;
color1 = colorcomponent1.selectedColor;
color2 = colorcomponent2.selectedColor;
emitter.addInitializer( new ColorInit( color1, color2));

I think it has something to do with the difference between ARGB and uint or something. How can I convert "colorcomponent1.selectedColor" into a value that the pixelrenderer will allow. ]]>
How do the ARGB uint values for ColorChange look like? http://flintparticles.org/forum/comments.php?DiscussionID=51&Focus=1281#Comment_1281 http://flintparticles.org/forum/comments.php?DiscussionID=51&Focus=1281#Comment_1281 Tue, 03 Aug 2010 08:23:26 +0100 Richard How do the ARGB uint values for ColorChange look like? http://flintparticles.org/forum/comments.php?DiscussionID=51&Focus=1283#Comment_1283 http://flintparticles.org/forum/comments.php?DiscussionID=51&Focus=1283#Comment_1283 Thu, 05 Aug 2010 08:04:10 +0100 Ubuntu