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
getColorNumberByIndex
public static double getColorNumberByIndex(int index)
getColorNamesArray
public static String[] getColorNamesArray()
getColorNameByIndex
public static String getColorNameByIndex(int index)
modulateInteger
public static int modulateInteger(Integer color)
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)
getColorIndexByName
public static int getColorIndexByName(String name)
getARGBByIndex
public static int getARGBByIndex(int index)
getRGBListByARGB
public static LogoList getRGBListByARGB(int argb)
getHSBListByARGB
public static LogoList getHSBListByARGB(int argb)
translateSavedColor
public static int translateSavedColor(int color)
rgbToLogoObject
public static Object rgbToLogoObject(int color)