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 TypeMethodDescriptionboolean
equals
(processing.core.PApplet p, int firstColor, int secondColor) static int
get
(int red, int green, int blue) static int
static int
getBlue
(processing.core.PApplet p, int color) static int
getGreen
(processing.core.PApplet p, int color) static String
getHexString
(int color) static int
getRed
(processing.core.PApplet p, int color) static String
getRGBString
(processing.core.PApplet p, int color) static void
printPColor
(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)
-