@rendley/sdk - v1.15.19
    Preparing search index...

    Interface ShapeGradient

    Gradient definition used for shape fills and strokes.

    start/end (and the radial radii) are expressed in the same coordinate space as the shape points definition: raw geometry units, scaled by the style scale exactly like polygon/Bezier points are when the shape is drawn.

    For linear gradients the color runs from start to end. For radial gradients the color runs from the circle at start/startRadius (default 0) to the circle at end/endRadius (default: the distance between start and end).

    interface ShapeGradient {
        end: ShapePoint;
        endRadius?: number;
        start: ShapePoint;
        startRadius?: number;
        stops: ShapeGradientStop[];
        type: ShapeGradientTypeEnum;
    }
    Index

    Properties

    endRadius?: number
    start: ShapePoint
    startRadius?: number