Copy link to clipboard
Copied
Hey I need to generate random colors for red and green combos with all tints. (where it could be solid red or solid green). Has anyone done this or know of an example code? thanks.
var col:int=Math.floor(Math.random()*0xff)<< 16 | Math.floor(Math.random()*0xff)<< 8;
Copy link to clipboard
Copied
var col:int=Math.floor(Math.random()*0xff)<< 16 | Math.floor(Math.random()*0xff)<< 8;