@jsfkit/types
    Preparing search index...

    Type Alias GradientLinearFill

    Linear gradient fill.

    Defines a gradient fill that transitions between colors along a straight line, with configurable angle, flip behavior, and color stops.

    type GradientLinearFill = {
        angle?: DmlAngle;
        colorStops: GradientColorStop[];
        flip?: FlipAxis;
        rotWithShape?: boolean;
        scaled?: boolean;
        type: "linearGradient";
    }
    Index

    Properties

    angle?: DmlAngle

    Angle of the gradient direction in 60,000ths of a degree.

    colorStops: GradientColorStop[]

    Array of color stops defining the gradient color transitions.

    flip?: FlipAxis

    Direction(s) in which to flip the gradient pattern.

    rotWithShape?: boolean

    Whether the gradient should rotate when the shape is rotated.

    scaled?: boolean

    Whether the gradient should scale with the shape dimensions.

    type: "linearGradient"

    Type discriminator for linear gradient fills.