Rgb

Description

Name

class Tinman.Color.Rgb

Derived from

Tinman.Color

Specifies a color by giving its color channel values.

Fields / Required

red

Type

number

Constraint

# >= 0 && # <= 1

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


green

Type

number

Constraint

# >= 0 && # <= 1

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


blue

Type

number

Constraint

# >= 0 && # <= 1

The bluechannel value (linear sRGB) , in the range [0..1].

Fields / Optional

alpha

Type

number

Constraint

# >= 0 && # <= 1

Default

1

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