Documentation
    Preparing search index...

    Interface RadialGradientPaint

    A §58 radial gradient: colour as a function of distance from center, reaching offset 1 at radius, both in the shape's local space (see LinearGradientPaint for the space and the stop rules). Beyond the radius the gradient pads with the last stop's colour.

    interface RadialGradientPaint {
        center: Point2D;
        kind: "radial-gradient";
        opacity?: number;
        radius: number;
        stops: readonly GradientStop[];
    }
    Index
    center: Point2D

    The gradient's centre, in local space; finite (§85).

    kind: "radial-gradient"

    Discriminant (§58 "radial gradient").

    opacity?: number

    See SolidPaint.opacity; multiplies every stop's alpha.

    radius: number

    Distance at which offset 1 is reached; finite, positive (§85).

    stops: readonly GradientStop[]

    At least two sorted stops (§85) — see GradientStop.