Preparing search index...

    Enumeration SpreadMode

    How a gradient extends beyond its [0, 1] parameter range. Mirrors the SVG spreadMethod attribute. Pass to VectorGradientBuilder#setSpread.

    Lens Scripting Version 370

    var gb = VectorGradientBuilder.linear(new vec2(0, 0), new vec2(128, 0));
    gb.addColorStop(0.0, new vec4(1, 0, 0, 1));
    gb.addColorStop(1.0, new vec4(0, 0, 1, 1));
    // Mirror the ramp past its [0, 1] range instead of clamping (the Pad default).
    gb.setSpread(VectorComposite.SpreadMode.Reflect);
    var gradient = gb.build();
    Index

    Enumeration Members

    Enumeration Members

    Pad: number

    Clamp to the end stops: the first stop color fills everything before the gradient's start, and the last stop color everything after its end. This is the default.

    Lens Scripting Version 370

    Reflect: number

    Reflect (mirror) the gradient pattern repeatedly beyond its range.

    Lens Scripting Version 370

    Repeat: number

    Repeat (tile) the gradient pattern beyond its range.

    Lens Scripting Version 370