a port of the Processing Visualization Language
Name

alpha()

Examples
example pic
noStroke();

color c = color(0, 126, 255, 102);

fill(c);

rect(15, 15, 35, 70);

float value = alpha(c);  //Sets "value" to "102"

fill(value);

rect(50, 15, 35, 70);
Description Extracts the alpha value from a color.
Syntax
alpha(color)
Parameters
color any value of the color datatype
Usage Web & Application
Related red()
green()
blue()
hue()
saturation()
brightness()

This reference is licensed under the CC BY-NC-SA 2.0 license:

Creative Commons License
Fork me on GitHub