harfbuzzjs
    Preparing search index...

    Type Alias PaintRadialGradientFunc

    PaintRadialGradientFunc: (
        colorLine: ColorLine,
        x0: number,
        y0: number,
        r0: number,
        x1: number,
        y1: number,
        r1: number,
        paintData: unknown,
        userData: unknown,
    ) => void

    A callback to paint a radial gradient everywhere within the current clip. The coordinates of the points are interpreted according to the current transform; see the OpenType spec COLR section for details on how the points define the direction of the gradient, and how to interpret the colorLine.

    Type Declaration

      • (
            colorLine: ColorLine,
            x0: number,
            y0: number,
            r0: number,
            x1: number,
            y1: number,
            r1: number,
            paintData: unknown,
            userData: unknown,
        ): void
      • Parameters

        • colorLine: ColorLine

          color information for the gradient

        • x0: number

          X coordinate of the first circle's center

        • y0: number

          Y coordinate of the first circle's center

        • r0: number

          radius of the first circle

        • x1: number

          X coordinate of the second circle's center

        • y1: number

          Y coordinate of the second circle's center

        • r1: number

          radius of the second circle

        • paintData: unknown

          the data accompanying the paint functions in Font.paintGlyph

        • userData: unknown

          the user data pointer passed to PaintFuncs.setRadialGradientFunc

        Returns void