Shade

Description

Name

class Tinman.Pixel.Shade

Derived from

Pixel

Applies a color shade to the target pixels, depending on the elevation values.

For shading, terrain-space elevation values are used.

Fields / Required

source

Type

Pixel

Constraint

# != null

The source pixel layer.


colorFrom

The color shade at Shade.elevationFrom.


colorTo

The color shade at Shade.elevationTo.


elevationFrom

Type

number

The elevation value at the start of the shade interval.


elevationTo

Type

number

The elevation value at the start of the shade interval.


falloff

Type

number

Constraint

# > 0

Length of falloff interval.

Fields / Optional

power

Type

number

Default

1

Optional exponent to use for transforming the linear blending factor.