weasel API - v0.8.0
    Preparing search index...

    Interface GroupDrawCommand

    interface GroupDrawCommand {
        alpha?: number;
        children: DrawCommand[];
        clip?: Path;
        colorMatrix?: number[];
        kind: "group";
        transform?: Mat3;
    }
    Index

    Properties

    alpha?: number
    children: DrawCommand[]
    clip?: Path

    Optional clip path. When set, the renderer rasterizes this path into the stencil buffer before drawing children; the children paint only where the clip covers. Nested groups with clips intersect — a child cannot escape an ancestor's clip. Max 7 nesting levels; the renderer throws if exceeded.

    colorMatrix?: number[]

    Optional 4×5 color matrix (row-major, 20 numbers) — out = M₄ₓ₄ * in + bias. Accumulated multiplicatively down the group stack. Defaults to identity.

    kind: "group"
    transform?: Mat3