Rgb16

Description

Name

class Tinman.Color.Rgb16

Derived from

Tinman.Color

Specifies a color by giving its color channel values.

Fields / Required

red

Type

number

Constraint

# >= 0 && # <= 65535

The red channel value (linear sRGB), in the range [0..65535].


green

Type

number

Constraint

# >= 0 && # <= 65535

The green channel value (linear sRGB), in the range [0..65535].


blue

Type

number

Constraint

# >= 0 && # <= 65535

The blue channel value (linear sRGB), in the range [0..65535].

Fields / Optional

alpha

Type

number

Constraint

# >= 0 && # <= 65535

Default

65535

The alpha channel value (linear), in the range [0..65535].