Ramp.Transform

Description

Name

class Tinman.Color.Ramp.Transform

Derived from

Tinman.Color.Ramp

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 / Required

ramp

Type

Tinman.Color.Ramp

Constraint

# != null

The source color ramp.

Fields / Optional

scale

Type

number

Constraint

# != 0

Default

1

Scale factor to apply to input X-coordinates.


offset

Type

number

Default

0

Offset value to add to scaled input X-coordinates.