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