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
Trigonometric
Miscellaneous
ident
isFinite
isNaN
oldz
perlinNoise
perlinNoise3
random
random.real
srand
trafoHistory
ubound
zero
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 - trafoHistory

Function name:trafoHistory - Return index of transformation formula from history
Synopsis:trafoHistory(x)

Input data type Output data type
int int
any other unsupported
The function trafoHistory is not supported for all fractal types. See table below:
Fractal Type Supported
Escapetime unsupported
Quaternion unsupported
Attractor supported


Description:

This function returns which transformation formula has been chosen during previous iterations. Using this function you can retrieve the formula index and thus perform e.g. special coloring based on the sequence of applied transformations. The Thus trafoHistory(0) returns the formula which is chosen during the current iteration. trafoHistory(1) returns the formula from the previous iteration, etc.

The returned values range from 1 to numTrafos. 1 means: The first formula, etc. A value of 0 means: Has not been initialized.

Please note: The function stores only the previous 65536 values.