pub static alpha: AlphaInternalTypeExpand description
Extracts the alpha value from a color or pixel array.
Examples
noStroke();
let c = color(0, 126, 255, 102);
fill(c);
rect(15, 15, 35, 70);
let value = alpha(c); // Sets 'value' to 102
fill(value);
rect(50, 15, 35, 70);Parameters
color p5.Color object, color components,
or CSS color