org.nlogo.api
Class Color
java.lang.Object
org.nlogo.api.Color
public final class Color
- extends Object
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
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)