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. |
Return the red component of the color.
Once an object color has been created, you can use the following function:
color.getRed()
return red
| Value | Type | Description |
|---|---|---|
| red | int |
The red component, from 0 to 255. |