green()ColorCreating & ReadingWeb & Applicationgreen_.gif
noStroke();
color c = color(0, 126, 255);
fill(c);
rect(15, 20, 35, 60);
float value = green(c); // Sets "value" to "126"
fill(value);
rect(50, 20, 35, 60);
Extracts the green value from a color.
green(color)
any value of the color datatypefloat
red()
blue()
hue()
saturation()
brightness()
1.0FunctionCore