AutoMovie API
    Preparing search index...

    Function createCellFront

    • A prison cell's barred front across the cell's width: upright round bars at the maker's centres from the floor to the cell's ceiling, braced by horizontal flat bars at the maker's spacing.

      The width is the cell's, a site dimension as a wall's run is, so the author gives it; the bars are as many as fit inside it at the maker's centres, centred on it, so no gap is wider than the centres allow. createCellFront.REFERENCE is the narrowest front the read code admits, for a caller that needs one without a cell.

      The grille stands in the XY plane on the floor, centred on the origin, the cell behind it toward -Z. bar1 to barN are the upright bars from -X, each a bar along +Y a hand grips through the gaps.

      Parameters

      • params: createCellFront.IParams

        The cell's width and any dimension the author fixes.

      • Optionalseed: string | number

        The seed that draws every dimension left free inside its band; absent, each takes the middle of its band.

      Returns Archetype<`bar${number}`, createCellFront.Dimension>

      The cell front.

      For a fixed dimension outside its band, or a width too narrow for two bars at the drawn centres.