Class Colors
java.lang.Object
org.monte.media.color.Colors
-
Method Summary
Modifier and TypeMethodDescriptionstatic IndexColorModelstatic IndexColorModelThe macintosh palette is arranged as follows: there are 256 colours to allocate, an even distribution of colors through the color cube might be desirable but 256 is not the cube of an integer.
-
Method Details
-
createMacColors
The macintosh palette is arranged as follows: there are 256 colours to allocate, an even distribution of colors through the color cube might be desirable but 256 is not the cube of an integer. 6x6x6 is 216 and so the first 216 colors are an equal 6x6x6 sampling of the color cube. This leaves 40 colours to allocate, this has been done by choosing a ramp of 10 shades each for red, green, blue and grey.References:
http://paulbourke.net/texture_colour/colourramp/- Returns:
- The Macintosh color palette.
-
createGrayColors
-