Overview | Package | Class | Tree | Deprecated | Index | Help
| Copyright 2012-04-26 Werner Randelshofer
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.monte.media.color
Class Colors

    java.lang.Object
      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.

Overview | Package | Class | Tree | Deprecated | Index | Help
| Copyright 2012-04-26 Werner Randelshofer
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD