Skip to content

getRed()

Return the red component of the color.

Parameters

Once an object color has been created, you can use the following function:

color.getRed()

Returns

return red

Value Type Description
red int The red component, from 0 to 255.