HeightmapSource

Description

Name

class Tinman.Canvas.HeightmapSource

Derived from

Canvas

A canvas that fetches data from a Heightmap.

Fields / Required

source

Type

Heightmap

Constraint

# != null

The source heightmap.

Fields / Optional

layer

Type

Pixel

Default

null

The pixel layer to use for generating canvas block from heightmap data.


smooth

Type

bool

Default

false

Chooses the interpolation mode: true to use Uniform-B interpolation, false to use Catmull-Rom interpolation.


block

Type

number

Constraint

# > 0

Default

128

The block size in pixels; will be round up to the smallest valid value, if necessary.