Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- how to build an array of colors
June 12, 2009, 7:16 pm
rate this thread
an array of colors, based on RGB arguments for the ImageColorAllocate
For the set [ 0, 64, 128, 192, 255 ] , I want to create every
combination ( the Cartesian product? ) of colors. How would I do this?
I was thinking a set of nested loops, but I think I would get
duplications using that method.
Another thought I had was to use MySQL to build the Cartesian product
of the set. That would be easier than me trying to make and
troubleshoot some php code to make a Cartesian product.
- » Compiling PHP with SOAP/Iconv/OpenSSL support on OS X 10.5
- — Previous thread in » PHP Scripting Forum