Guide 1 Docs 2 Reference 3

Function of World

world.canvas

Makes a picture of width by height maps (1 by 1 by default, 16 at most a side) with no frame of its own, for a frame, a hand or a screen.

world.canvas(opts: { width: number?, height: number? }?) → Canvas

Parameters

opts{ width: number?, height: number? }optional

Returns

Canvas

Used in