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
Basics
Variable Scope
Predefined Variables
Predefined Variables - Escapetime
Predefined Variables - Quaternion
alpha
Base1
Base2
Base3
Base4
Basepoint
currentRayIndex
estimatedDistance
e
hasBeenHit
height
index
maxiter
Normal
numiter
pi
pixel
pixelcolor
random
randomrange
screenmax
screenpixel
solid
width
z
Predefined Variables - Attractor
Parameters
Expressions
Operators
Functions
Control Structures
Compiler Directives
Functions
Interface to ChaosPro
Special Features, Notes...
Compatibility
Fractal Type Reference
Tutorials
Appendix
CHAOSPRO 4.0
Release 4.0
.

Parameters - currentRayIndex

Name: currentRayIndex

Type: int

Read/Write: Read

Context: Transformation, Iteration, Coloring

Description:

Specifies how many checks have been done so far on the current ray. Starts at 0 when a new ray is scanned, gets incremented when ChaosPro advances to the next check on the current ray.

It stays equal when the final loop gets executed, i.e. the object border has been reached and the color should be determined.

Using this variable you can examine how good your distance estimation formula works: The number of checks done on a scanned ray should be quite low.