plate-engine - v0.1.0
    Preparing search index...

    Interface Generator<P>

    A procedural engraving: a drawing function plus a description of its parameters.

    interface Generator<P extends Record<string, number> = Record<string, number>> {
        description: string;
        draw: DrawFn<P>;
        name: string;
        params: ParamSpecs<P>;
        title: string;
    }

    Type Parameters

    • P extends Record<string, number> = Record<string, number>
    Index
    description: string

    One sentence on what it draws.

    draw: DrawFn<P>
    name: string

    Stable identifier, e.g. "fern".

    params: ParamSpecs<P>
    title: string

    Display title, e.g. "Barnsley fern".