Procedural.Color

Description

Name

class Tinman.Image.Procedural.Color

Derived from

Image.Procedural

Creates an image that is generated by a procedural color function.

Fields / Required

width

Type

number

Constraint

# > 0

The image width, in pixels.


height

Type

number

Constraint

# > 0

The image height, in pixels.


function

Type

Noise.Color

Constraint

# != null

The procedural function.

Fields / Optional

transform

Type

Mat3

Default

null

The transformation matrix to use for obtaining input coordinates for the noise function. If null or all-zero, the following transformation will be used: C' = (C + 0.5) / S, where C is the input pixel X/Y coordinate, S is the image width/height and C' is the output coordinate for the noise function.


format

Type

PixelFormat[]

Default

[Truecolor, Alpha, SixteenBits]

The pixel format.


layer

Type

Heightmap.Layer

Default

Heightmap.Layer.None

The heightmap layer.

Fields / External

info

Type

Image.Info

Contains information about the image data source, including image format and embedded geo-referencing information.