A comment from my last post suggested I check out
com.degrafa.paint.palette.PaletteUtils. Thank you so very much, gwd, for pointing that out!
PaletteUtils is very cool! I wish I would have known about it a couple of months ago when I wrote my own color generating code.
PaletteUtils has some static methods that will return an array of colors:
Below is an example of a simple color picker that uses
PaletteUtils to generate colors. Note that I had to fix a few issues with
getCategoryPalette() (issues in Degrafa Beta 3, for which I've filed some bugs).
Right click on the app to view the Flex source. Click here for a larger version.
Note: some of the sliders (like Saturation2) are only used in conjunction w/some of the palettes.