harfbuzzjs
    Preparing search index...

    Type Alias PaintSweepGradientFunc

    PaintSweepGradientFunc: (
        colorLine: ColorLine,
        x0: number,
        y0: number,
        startAngle: number,
        endAngle: number,
        paintData: unknown,
        userData: unknown,
    ) => void

    A callback to paint a sweep 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,
            startAngle: number,
            endAngle: number,
            paintData: unknown,
            userData: unknown,
        ): void
      • Parameters

        • colorLine: ColorLine

          color information for the gradient

        • x0: number

          X coordinate of the circle's center

        • y0: number

          Y coordinate of the circle's center

        • startAngle: number

          the start angle, in radians

        • endAngle: number

          the end angle, in radians

        • paintData: unknown

          the data accompanying the paint functions in Font.paintGlyph

        • userData: unknown

          the user data pointer passed to PaintFuncs.setSweepGradientFunc

        Returns void