Skip to content

getRGBA()

Return the color's red, green, blue, and alpha components together.

color.getRGBA()

Returns

return red, green, blue, alpha

Value Type Description
red int The red component, from 0 to 255.
green int The green component, from 0 to 255.
blue int The blue component, from 0 to 255.
alpha int The opacity, from 0 (fully transparent) to 255 (fully opaque).