public class Color extends Object
Color
class. It represents an RGB color. It maintains three int
values for red, green, and blue. It also maintains an int representation of the RGB color
identical to the 'color' type in Processing.Constructor and Description |
---|
Color() |
Modifier and Type | Method and Description |
---|---|
void |
setRgb(int rgb)
Sets the int rgb version of the color.
|
int |
toInt()
Returns an int representation of the color identical to the Processing 'color' type.
|
Copyright © 2015. All rights reserved.