Copyright 2013-01-06 Werner Randelshofer

org.monte.media.color
Class Colors

java.lang.Object
  extended by org.monte.media.color.Colors

public class Colors
extends java.lang.Object

Colors.

Version:
1.0 2011-03-13 Created.
Author:
Werner Randelshofer

Method Summary
static java.awt.image.IndexColorModel 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createMacColors

public static java.awt.image.IndexColorModel 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.

Copyright 2013-01-06 Werner Randelshofer