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

    Variable generatorsConst

    generators: {
        branches: Generator<Record<string, number>>;
        chladni: Generator<Record<string, number>>;
        eye: Generator<Record<string, number>>;
        fern: Generator<Record<string, number>>;
        medallion: Generator<Record<string, number>>;
        moon: Generator<Record<string, number>>;
        orbits: Generator<Record<string, number>>;
        phyllotaxis: Generator<Record<string, number>>;
        ridges: Generator<Record<string, number>>;
        sphere: Generator<Record<string, number>>;
        sunburst: Generator<Record<string, number>>;
    } = ...

    Every built-in generator, keyed by name.

    Type Declaration

    • branches: Generator<Record<string, number>>

      Recursive branching: one seed, a few rules, a crown above the soil and roots below.

    • chladni: Generator<Record<string, number>>

      A Chladni figure: sand on a square plate, bowed until it sings. The sand runs off everything that moves and settles on the still (nodal) lines. Two square-plate modes, one standing wave: cos(nπx)cos(mπy) − cos(mπx)cos(nπy).

    • eye: Generator<Record<string, number>>

      An engraved eye: almond lids, a fibrous iris, a catchlight. Uses no randomness.

    • fern: Generator<Record<string, number>>

      Barnsley's fern: four affine maps chosen at random by the chaos game, iterated until a plant appears. The probabilities decide how much ink each map gets; the coefficients decide the shape.

    • medallion: Generator<Record<string, number>>

      A coin lit from the left: bevelled rim, ticks, a star in the field.

    • moon: Generator<Record<string, number>>

      The moon, engraved after Hevelius, lit for a given phase: seas, craters with rims, Tycho's rays, and earthshine on the dark side so the face stays legible. The phase defaults to the moon's phase at the moment of drawing; pass phase: moonPhase(date).phase for a fixed date.

    • orbits: Generator<Record<string, number>>

      An orrery seen at an angle: six rings, six planets, a dotted star-chart grid.

    • phyllotaxis: Generator<Record<string, number>>

      Phyllotaxis: a sunflower head. Seed i sits at angle i × θ and radius c√i (Vogel's model). At the golden angle the seeds pack without gaps; nudge the angle and they collapse into spokes.

    • ridges: Generator<Record<string, number>>

      Stacked ridge lines, drawn back to front so each one hides what is behind it.

    • sphere: Generator<Record<string, number>>

      An engraved globe lit from the upper left, with a cast shadow.

    • sunburst: Generator<Record<string, number>>

      A sun setting behind a hatched hill, with rays and a ring.