-
Notifications
You must be signed in to change notification settings - Fork 0
PixelColor
firstmiddlelast edited this page Aug 26, 2023
·
1 revision
-
rgba (r, g, b, a)Converts R, G, B, A values into a single 32-bit RGBA color.- Argument:
rred, 0-255. Defaults to 0 - Argument:
ggreen, 0-255. Defaults to 0 - Argument:
bblue, 0-255. Defaults to 0 - Argument:
aalpha (opacity), 0-255. Defaults to 255 - Returns: A 32-bit color in 8888 RGBA format.
- Argument:
-
rgbaR (color)Extracts the red channel from a 32-bit color- Argument:
colorA 32-bit color in 8888 RGBA format - Returns: The red component of the color
- Argument:
-
rgbaG (color)Extracts the green channel from a 32-bit color- Argument:
colorA 32-bit color in 8888 RGBA format - Returns: The green component of the color
- Argument:
-
rgbaB (color)Extracts the blue channel from a 32-bit color- Argument:
colorA 32-bit color in 8888 RGBA format - Returns: The blue component of the color
- Argument:
-
rgbaA (color)Extracts the alpha channel from a 32-bit color- Argument:
colorA 32-bit color in 8888 RGBA format - Returns: The alpha component of the color
- Argument:
-
graya (gray, alpha)- Argument:
grayThe luminance of color (defaults to 0) - Argument:
alphaThe alpha (opacity) of the color (defaults to 255) - Returns: The color with the given luminance/opacity
- Argument:
-
grayaV (color)Extracts the luminance from a 32-bit color- Argument:
colorA 32-bit color in 888 RGBA format - Returns: The luminance Value of the color
- Argument:
-
grayaA (color)Extracts the alpha (opacity) from a 32-bit color- Argument:
colorA 32-bit color in 888 RGBA format - Returns: The alpha component of the color
- Argument: