Skip to content

getRGB()

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

color.getRGB()

Returns

return red, green, blue

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.