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 - compose

Function name:compose - Compose two colors
Synopsis:compose(col1,col2,transparency)

Input data type Output data type
color, color, real color


Description:

This function performs color composition just as the layer merging in ChaosPro. It "composes" the second color on top of the first color. The transparencies of the two colors are taken into account. So basically this function does some kind of "natural interpolation": It's as if you would place a sheet of colored paper having the color and transparency of the second color over a sheet of paper which has the color of the first parameter.