Information about a color stop on a ColorLine.
Color lines typically have offsets ranging between 0 and 1, but that is not required.
The isForeground and color fields have the same semantics as in PaintFuncs.setColorFunc.
isForeground
color
Note: despite color being unpremultiplied here, interpolation in gradients shall happen in premultiplied space. See the OpenType spec COLR section for details.
The color, unpremultiplied.
Whether the color is the foreground.
The offset of the color stop.
Information about a color stop on a ColorLine.
Color lines typically have offsets ranging between 0 and 1, but that is not required.
The
isForegroundandcolorfields have the same semantics as in PaintFuncs.setColorFunc.Note: despite
colorbeing unpremultiplied here, interpolation in gradients shall happen in premultiplied space. See the OpenType spec COLR section for details.