org.nlogo.api
Class Color

java.lang.Object
  extended by org.nlogo.api.Color

public final class Color
extends Object


Field Summary
static double BLACK
           
static Double BOXED_BLACK
           
static Double BOXED_WHITE
           
static int MAX_COLOR
           
static int NUM_HUES
           
static double WHITE
           
 
Method Summary
static Double argbToColor(int argb)
           
static double findCentralColorNumber(double color)
           
static int getARGBByIndex(int index)
           
static int getARGBbyPremodulatedColorNumber(double modulatedColor)
           
static int getARGBIntByRGBAList(LogoList rgba)
           
static String getClosestColorNameByARGB(int argb)
           
static double getClosestColorNumberByARGB(int argb)
           
static double getClosestColorNumberByHSB(float h, float s, float b)
           
static Color getColor(Object color)
           
static String getColorNameByIndex(int index)
           
static String[] getColorNamesArray()
           
static double getColorNumberByIndex(int index)
           
static Color getComplement(Color color)
           
static LogoList getHSBListByARGB(int argb)
           
static LogoList getRGBAListByARGB(int argb)
           
static int getRGBByName(String name)
           
static int getRGBInt(int r, int g, int b)
           
static int getRGBInt(Object c)
           
static LogoList getRGBListByARGB(int argb)
           
static double modulateDouble(double color)
           
static double modulateDouble(Double color)
           
static int modulateInteger(int color)
           
static int translateSavedColor(int color)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NUM_HUES

public static final int NUM_HUES
See Also:
Constant Field Values

MAX_COLOR

public static final int MAX_COLOR
See Also:
Constant Field Values

BLACK

public static final double BLACK
See Also:
Constant Field Values

WHITE

public static final double WHITE
See Also:
Constant Field Values

BOXED_BLACK

public static final Double BOXED_BLACK

BOXED_WHITE

public static final Double BOXED_WHITE
Method Detail

getColor

public static Color getColor(Object color)

getColorNumberByIndex

public static double getColorNumberByIndex(int index)

getColorNamesArray

public static String[] getColorNamesArray()

getColorNameByIndex

public static String getColorNameByIndex(int index)

modulateInteger

public static int modulateInteger(int color)

modulateDouble

public static double modulateDouble(Double color)

modulateDouble

public static double modulateDouble(double color)

findCentralColorNumber

public static double findCentralColorNumber(double color)

getClosestColorNumberByARGB

public static double getClosestColorNumberByARGB(int argb)

getClosestColorNameByARGB

public static String getClosestColorNameByARGB(int argb)

getClosestColorNumberByHSB

public static double getClosestColorNumberByHSB(float h,
                                                float s,
                                                float b)

getARGBbyPremodulatedColorNumber

public static int getARGBbyPremodulatedColorNumber(double modulatedColor)

getRGBByName

public static int getRGBByName(String name)

getARGBByIndex

public static int getARGBByIndex(int index)

getRGBListByARGB

public static LogoList getRGBListByARGB(int argb)

getRGBAListByARGB

public static LogoList getRGBAListByARGB(int argb)

getARGBIntByRGBAList

public static int getARGBIntByRGBAList(LogoList rgba)

getHSBListByARGB

public static LogoList getHSBListByARGB(int argb)

translateSavedColor

public static int translateSavedColor(int color)

argbToColor

public static Double argbToColor(int argb)

getRGBInt

public static int getRGBInt(int r,
                            int g,
                            int b)

getRGBInt

public static int getRGBInt(Object c)

getComplement

public static Color getComplement(Color color)