Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
hb_color_stop_t Struct Reference

#include <hb-paint.h>

Data Fields

float offset
 
hb_bool_t is_foreground
 
hb_color_t color
 

Detailed Description

hb_color_stop_t: @offset: the offset of the color stop @is_foreground: whether the color is the foreground @color: the color, unpremultiplied

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.

Since: 7.0.0

Definition at line 330 of file hb-paint.h.

Field Documentation

◆ color

hb_color_t hb_color_stop_t::color

Definition at line 333 of file hb-paint.h.

◆ is_foreground

hb_bool_t hb_color_stop_t::is_foreground

Definition at line 332 of file hb-paint.h.

◆ offset

float hb_color_stop_t::offset

Definition at line 331 of file hb-paint.h.


The documentation for this struct was generated from the following file: