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

    Interface PathDrawCommand

    interface PathDrawCommand {
        fill?: FillStyle;
        kind: "path";
        path: Path;
        stroke?: Stroke;
        vertexColors?: number[];
    }
    Index

    Properties

    fill?: FillStyle

    Any FillStyle variant: solid, pattern, or gradient (linear/radial/conic).

    kind: "path"
    path: Path
    stroke?: Stroke

    Stroke spec. Only solid paint supported through step 4.

    vertexColors?: number[]

    Optional flat RGBA-per-path-anchor color array (length = 4 × countPathAnchors(path), floats in 0..1). The renderer arc-length-interpolates these per-anchor colors across the flattened/triangulated mesh between consecutive anchors using the mesh's anchorA / anchorB / anchorT parameterization.

    fill must also be set when using vertexColors. The renderer only enters the per-vertex shader path when the command has a fill (the fill provides the opacity uniform; the vertex colors override the fill's color). Pass any solid fill (e.g. { color: '#fff' }) as the placeholder; the per-vertex colors win in the shader.