Predefined Functions – red
| Function name: | red – Return red component |
| Synopsis: | red(c) |
| Input data type | Output data type |
|---|---|
| color | real |
Description:
This function takes a color variable as input and returns the red part of the color. Normally the red part of a color is between 0 and 1. Colors can be created by using one of the color creation functions:
Internally colors are stored in RGBA format, thus this function is fast as it only needs to return one of the stored components of the color.