Generate Random Colors

2009-01-30 Thread Charles E. Heizer
Hello, How would I go about generating random colors for my charts? Thanks, -Charles ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial

Re: Generate Random Colors

2009-01-30 Thread Barney Boisvert
Here's one way: function getColorPart() { var n = formatBaseN(randRage(0,255), 16) if (len(n) EQ 1) { n = 0 n; } return n; } cfset color = #getColorPart()##getColorPart()##getColorPart()# / That said, you don't want to do that. Really. Use a tool to create a palette of colors that go well

Re: Generate Random Colors

2009-01-30 Thread Nathan Strutz
A few years back I wrote a series of random color functions. You can get them on cflib.org: This just pulls any color out of the air: http://www.cflib.org/udf/RandomColor This makes a color close to the given color (within a given radius, 1-255 i think):