Tuesday, March 29, 2011
Randomize Color
I've go through some tutorial online and I've found the random color display code that will be using in my installation effect. Here are the code:
myColor = Math.round( Math.random()*0xFFFFFF );
myColoredObject = new Color (_root.effect);
myColoredObject.setRGB(myColor);
The tutorial effect:
The color splashing sample that will be used in the installation:
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment