Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

frameShot

frameShot(surface, camera, aspect): MapView

The camera a shot looks through, framed from the map’s data and the ground with no render: a raw view as written, or one that fits its subject from its angle, at the aspect the shot is taken at. A scene with no map, as a track game’s, passes the box it draws instead, and all frames that box. Throws on a subject the map has not got.

Parameter Type
surface Box3 | GroundSurface | DeepReadonly<GroundSurface>
camera Readonly<{ eye: readonly number[]; fov?: number; ortho?: number; target: readonly number[]; }> | { angle?: Top | Bottom | Front | Back | Left | Right | ThreeQuarter | Iso | { azimuth: number; elevation: number; }; around?: string | readonly number[] | readonly number[][]; ortho?: boolean; zoom?: number; }
aspect number

MapView