HarfBuzz.color_stop_t

Fields

Name

Type

Access

Description

color

int

r/w

the color, unpremultiplied

is_foreground

int

r/w

whether the color is the foreground

offset

float

r/w

the offset of the color stop

Methods

None

Details

class HarfBuzz.color_stop_t

Information about a color stop on a color line.

Color lines typically have offsets ranging between 0 and 1, but that is not required.

Note: despite color being unpremultiplied here, interpolation in gradients shall happen in premultiplied space. See the OpenType spec COLR section for details.

New in version 7.0.0.