AutoMovie API
    Preparing search index...

    Function createSaloonDoor

    • A pair of saloon (café) doors hung in a doorway: two leaves meeting at its middle, each on a double-acting gravity hinge at its jamb.

      The doorway stands in the XY plane with its threshold's middle at the origin; the opening is one the maker sizes its doors for, given or drawn from the seed, each leaf half of it, the two meeting at the middle, its foot the drawn gap above the floor. leftLeaf and rightLeaf are the hinges on the +X and -X jambs; a positive travel swings a leaf out toward +Z up to the hinge's 125 degrees, and a negative one toward -Z as far, the hinge's reverse, since the double-acting hinge locks open at 125 degrees in either direction. leftPush and rightPush are the leaves' faces at their middles, where a body pushes through, riding their hinges; passage is the opening under the leaves' tops. The doorway's frame is the wall's, not built.

      Parameters

      • params: createSaloonDoor.IParams = {}

        The opening and any dimension the author fixes.

      • Optionalseed: string | number

        The seed that draws the opening when it is not given and every dimension left free inside its band; absent, the first opening and the middle of each band.

      Returns Archetype<createSaloonDoor.Affordance, createSaloonDoor.Dimension>

      The doors.

      For an opening the maker does not list, or a fixed dimension outside its band.