legacy.video
Class Colors

java.lang.Object
  extended by legacy.video.Colors

public class Colors
extends java.lang.Object

Colors.class contains a list of standard predifined colors generaly used by various systems.

Author:
Benjamin Tarrant

Field Summary
static RGB BLACK
          Standard Black color
static RGB BLUE
          Standard Blue color
static RGB CREAM
          Standard Cream color
static RGB CYAN
          Standard Cyan color
static RGB DARK_BLUE
          Standard Dark Blue color
static RGB DARK_CYAN
          Standard Dark Cyan color
static RGB DARK_GREEN
          Standard Dark Green color
static RGB DARK_GREY
          Standard Dark Grey color
static RGB DARK_MAGENTA
          Standard Dark Magenta color
static RGB DARK_RED
          Standard Dark Red color
static RGB DARK_YELLOW
          Standard Dark Yellow color
static RGB GREEN
          Standard Green color
static RGB LIGHT_GREY
          Standard Light Grey color
static RGB MAGENTA
          Standard Magenta color
static RGB MEDIUM_GREY
          Standard Medium Grey color
static RGB MONEY_GREEN
          Standard Money Green color
static RGB RED
          Standard Red color
static RGB SKY_BLUE
          Standard Sky Blue color
static RGB WHITE
          Standard White color
static RGB YELLOW
          Standard Yellow color
 
Constructor Summary
Colors()
           
 
Method Summary
static int getDistance(RGB rgbx, RGB rgby)
          getDistance calculates an effective destance between to individual colors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BLACK

public static final RGB BLACK
Standard Black color


DARK_RED

public static final RGB DARK_RED
Standard Dark Red color


DARK_GREEN

public static final RGB DARK_GREEN
Standard Dark Green color


DARK_YELLOW

public static final RGB DARK_YELLOW
Standard Dark Yellow color


DARK_BLUE

public static final RGB DARK_BLUE
Standard Dark Blue color


DARK_MAGENTA

public static final RGB DARK_MAGENTA
Standard Dark Magenta color


DARK_CYAN

public static final RGB DARK_CYAN
Standard Dark Cyan color


LIGHT_GREY

public static final RGB LIGHT_GREY
Standard Light Grey color


MONEY_GREEN

public static final RGB MONEY_GREEN
Standard Money Green color


SKY_BLUE

public static final RGB SKY_BLUE
Standard Sky Blue color


CREAM

public static final RGB CREAM
Standard Cream color


MEDIUM_GREY

public static final RGB MEDIUM_GREY
Standard Medium Grey color


DARK_GREY

public static final RGB DARK_GREY
Standard Dark Grey color


RED

public static final RGB RED
Standard Red color


GREEN

public static final RGB GREEN
Standard Green color


YELLOW

public static final RGB YELLOW
Standard Yellow color


BLUE

public static final RGB BLUE
Standard Blue color


MAGENTA

public static final RGB MAGENTA
Standard Magenta color


CYAN

public static final RGB CYAN
Standard Cyan color


WHITE

public static final RGB WHITE
Standard White color

Constructor Detail

Colors

public Colors()
Method Detail

getDistance

public static final int getDistance(RGB rgbx,
                                    RGB rgby)
getDistance calculates an effective destance between to individual colors

Parameters:
rgbx - RGB triplet x
rgby - RGB triplet y
Returns:
effective distance