[−][src]Static p5_sys::global::blue
pub static blue: BlueInternalType
Extracts the blue value from a color or pixel array.
Examples
let c = color(175, 100, 220); fill(c); rect(15, 20, 35, 60); // Draw left rectangle let blueValue = blue(c); fill(0, 0, blueValue); rect(50, 20, 35, 60); // Draw right rectangle
Parameters
color
p5.Color object, color components,
or CSS color