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? }?) → CanvasParameters
opts{ width: number?, height: number? }Returns
Canvas