rullino
    Preparing search index...

    Interface LinearMask

    0 at from, 1 at to (smoothstep in between), constant beyond them.

    interface LinearMask {
        from: Vec2;
        invert?: boolean;
        kind: "linear";
        opacity?: number;
        to: Vec2;
    }

    Hierarchy

    • MaskOptions
      • LinearMask
    Index
    from: Vec2
    invert?: boolean

    Swap inside and outside.

    kind: "linear"
    opacity?: number

    Multiplies the mask (after inverting), in [0, 1]. Default 1.

    to: Vec2