AutoMovie API
    Preparing search index...

    Function createDevice

    • A handheld device: a smartphone, a compact camera, a remote control, a tablet or a walkie-talkie.

      The model is a slab, with a camera's lens barrel and hand grip: what tells them apart. The device stands on its bottom edge at the origin, its screen, its lens or its buttons facing +Z, its long side along +Y for a phone, a remote, a tablet and a walkie-talkie and along +X for a camera. A tablet and a walkie-talkie are held across their back anywhere up their height; a tablet's screen is its whole front, and no maker read places its lens, so it declares none; a walkie-talkie's speaker is its whole front, which the voice meets, and its antenna and push-to-talk key wait for a source of their size and place. A camera's and a remote's button states no travel: no maker read gives one, so the press is not built.

      Parameters

      • params: createDevice.IParams

        The kind, the kind's model where it has read models, and any dimension the author fixes.

      • Optionalseed: string | number

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

      Returns Archetype<createDevice.Affordance, createDevice.Dimension>

      The device.

      For a model the kind does not have, or a fixed dimension outside its band.