Class PColor
java.lang.Object
PColor
PColor class - provides static variables and methods for Processing colors
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanequals(processing.core.PApplet p, int firstColor, int secondColor) static intget(int red, int green, int blue) static intstatic intgetBlue(processing.core.PApplet p, int color) static intgetGreen(processing.core.PApplet p, int color) static StringgetHexString(int color) static intgetRed(processing.core.PApplet p, int color) static StringgetRGBString(processing.core.PApplet p, int color) static voidprintPColor(processing.core.PApplet p, int color)
-
Field Details
-
BLACK
public static int BLACK -
WHITE
public static int WHITE -
GRAY
public static int GRAY -
RED
public static int RED -
GREEN
public static int GREEN -
BLUE
public static int BLUE -
CYAN
public static int CYAN -
MAGENTA
public static int MAGENTA -
YELLOW
public static int YELLOW -
NULL
public static int NULL
-
-
Constructor Details
-
PColor
public PColor()
-
-
Method Details
-
get
public static int get(int red, int green, int blue) -
get
-
getRed
public static int getRed(processing.core.PApplet p, int color) -
getGreen
public static int getGreen(processing.core.PApplet p, int color) -
getBlue
public static int getBlue(processing.core.PApplet p, int color) -
printPColor
public static void printPColor(processing.core.PApplet p, int color) -
getRGBString
-
getHexString
-
equals
public boolean equals(processing.core.PApplet p, int firstColor, int secondColor)
-