@rbxts/a-plant-generator - v0.2.0
    Preparing search index...

    Inflorescence gallery

    Inflorescence builders describe attachment topology independently from flower geometry. This example generates raceme, spike, panicle, umbel, cyme, and capitulum arrangements with the same overall scale.

    Six generated inflorescence attachment architectures displayed as botanical specimens.

    Left to right: raceme, spike, panicle, umbel, cyme, and capitulum. Each sample uses 12 lateral attachments plus its terminal flower.

    import { createInflorescence, type InflorescenceKind } from "@rbxts/a-plant-generator";

    export const inflorescenceKinds: readonly InflorescenceKind[] = [
    "raceme",
    "spike",
    "panicle",
    "umbel",
    "cyme",
    "capitulum",
    ];

    export const inflorescenceGallery = inflorescenceKinds.map((kind) => ({
    kind,
    attachments: createInflorescence({
    kind,
    count: 12,
    length: 2.6,
    radius: 0.72,
    birthInterval: 0.35,
    maturationDuration: 1.4,
    terminalFlower: true,
    }),
    }));

    Each attachment includes a transform, birth time, maturation duration, and terminal flag. A consumer renderer can use simple balls for a diagnostic scene or replace them with meshes from createRadialFlower.

    Try varying divergenceAngle or birthInterval without changing the selected inflorescence kind.