PDA

View Full Version : random colors script



ilyaslamasse
May 4th, 2002, 10:02 AM
Hey everybody. I was told another awy to produce random colors, without the painful r<<16 etc. :
colorful = new Color(this) ;
hexa = Math.round(Math.random()*0xffffff);
colorful.setRGB(hexa) ;Nice !

pom 0]

lobstars
May 4th, 2002, 10:45 AM
darn fine trick! pom