ChaosPro Home
Introduction
What's New
Palettes
Using Formulas
Layering in ChaosPro
Rendering
Fractal Parameter Windows
Windows
Menu
3D Transformations
Animations
Formula Compiler
Writing Formulas
Language Reference
Introduction
Basic Syntax
Datatypes
Constants
Variables
Expressions
Operators
Functions
Arithmetic
Conversion
Color
rgb
rgba
hsl
hsla
red
green
blue
alpha
hue
sat
lum
blend
compose
gradient
merge
Trigonometric
Miscellaneous
Control Structures
Compiler Directives
Functions
Interface to ChaosPro
Special Features, Notes...
Compatibility
Fractal Type Reference
Tutorials
Appendix
CHAOSPRO 4.0
Release 4.0
.

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.