harfbuzzjs
    Preparing search index...

    Interface ColorStop

    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.

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

    interface ColorStop {
        color: Color;
        isForeground: boolean;
        offset: number;
    }
    Index

    Properties

    color: Color

    The color, unpremultiplied.

    isForeground: boolean

    Whether the color is the foreground.

    offset: number

    The offset of the color stop.