Welcome, Guest
Want to take part in these discussions? Sign in if you have an account, or apply for one below
-
- CommentAuthorPhillip
- CommentTimeJul 16th 2008 edited
I'm totally confused here. How are the ARGB uint values for ColorChange supposed to look???
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 -
- CommentAuthorPhillip
- CommentTimeJul 16th 2008
I found out.
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 -
- CommentAuthorUbuntu
- CommentTimeJul 29th 2010
I am immensly confused.... I have 2 Color Picker Components
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. -
- CommentAuthorRichard
- CommentTimeAug 3rd 2010 edited
BitmapRenderer and PixelRenderer use the same type of value for the ARGB color so a color that works for one should work for the other. Could you provide more code so I can see what you're doing to ascertain why the PixelRenderer isn't working for you. -
- CommentAuthorUbuntu
- CommentTimeAug 5th 2010
Yay I finally fixed it. Surprisingly the fade() action that was used on my bitmaprenderer, had to be added to my pixelrenderer in order to make my color changes work. Thank you for reassuring me that the pixel and bitmap renderer used the same ARGB color.
1 to 5 of 5
