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

captureScreen

captureScreen(options): string

A PNG data URL of what the player sees: one render from the camera that draws the game, through its stack, read in the same tick so the canvas needs no preserved buffer. Everything drawn over the canvas in the page, the devtools and the HUD among it, stays out; the screen overlays drawn in the canvas stay in unless overlays is false.

Parameter Type
options CaptureOptions & object

string