Common types

class ColorRgb(r, g, b)

RGB color (from 0.0 to 1.0). This is equivalent to (r, g, b) tuple.

b

The blue value.

Type

float

g

The green value.

Type

float

r

The red value.

Type

float

class ColorLab(l, a, b)

Lab color. This is equivalent to (l, a, b) tuple.

a

The a chrominance value (from -128.0 to 128.0).

Type

float

b

The b chrominance value (from -128.0 to 128.0).

Type

float

l

The luminance value (from 0.0 to 100.0).

Type

float

class Vector3(x, y, z)

3D vector float. This is equivalent to (x, y, z) tuple.

x

The X axis value.

Type

float

y

The Y axis value.

Type

float

z

The Z axis value.

Type

float