TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

class Tinman.Color.Ramp.Transform

Short Name:
  • class Ramp.Transform
Derived From:
Fields:

Transforms the input coordinate of the given color ramp. Input X-coordinates are transformed as follows:

xOut = offset + scale * xIn
xIn  = (xOut - offset) / scale
     = xOut / scale - offset / scale

where xIn refers to the coordinate passed to the returned color ramp and xOut is the coordinate that is passed to this color ramp.

Fields

The following table lists all fields of this config type.

Field Type Constraint Default
required ramp Tinman.Color.Ramp
# != null
 

The source color ramp.

optional scale number
# != 0
1

Scale factor to apply to input X-coordinates.

optional offset number  
0

Offset value to add to scaled input X-coordinates.