Skip to content

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: r red, 0-255. Defaults to 0
    • Argument: g green, 0-255. Defaults to 0
    • Argument: b blue, 0-255. Defaults to 0
    • Argument: a alpha (opacity), 0-255. Defaults to 255
    • Returns: A 32-bit color in 8888 RGBA format.
  • rgbaR (color) Extracts the red channel from a 32-bit color

    • Argument: color A 32-bit color in 8888 RGBA format
    • Returns: The red component of the color
  • rgbaG (color) Extracts the green channel from a 32-bit color

    • Argument: color A 32-bit color in 8888 RGBA format
    • Returns: The green component of the color
  • rgbaB (color) Extracts the blue channel from a 32-bit color

    • Argument: color A 32-bit color in 8888 RGBA format
    • Returns: The blue component of the color
  • rgbaA (color) Extracts the alpha channel from a 32-bit color

    • Argument: color A 32-bit color in 8888 RGBA format
    • Returns: The alpha component of the color
  • graya (gray, alpha)

    • Argument: gray The luminance of color (defaults to 0)
    • Argument: alpha The alpha (opacity) of the color (defaults to 255)
    • Returns: The color with the given luminance/opacity
  • grayaV (color) Extracts the luminance from a 32-bit color

    • Argument: color A 32-bit color in 888 RGBA format
    • Returns: The luminance Value of the color
  • grayaA (color) Extracts the alpha (opacity) from a 32-bit color

    • Argument: color A 32-bit color in 888 RGBA format
    • Returns: The alpha component of the color

Clone this wiki locally