Rgb8

Description

Name

class Tinman.Color.Rgb8

Derived from

Tinman.Color

Specifies a color by giving its color channel values.

Fields / Required

red

Type

number

Constraint

# >= 0 && # <= 255

The red channel value (compressed sRGB), in the range [0..255].


green

Type

number

Constraint

# >= 0 && # <= 255

The green channel value (compressed sRGB), in the range [0..255].


blue

Type

number

Constraint

# >= 0 && # <= 255

The blue channel value (compressed sRGB), in the range [0..255].

Fields / Optional

alpha

Type

number

Constraint

# >= 0 && # <= 255

Default

255

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