Rendering
Canvas
A minigame has only one on-screen canvas and multiple off-screen canvases. Use sud.createCanvas() to create a canvas object. The first call to this API creates the on-screen canvas; subsequent calls create off-screen canvases.
Drawing Context
You can obtain the drawing context via Canvas.getContext.
Changing the Render Frame Rate
Use sud.setPreferredFramesPerSecond to change the frame rate. The default render frame rate is 60 frames per second. After changing it, the callback frequency of requestAnimationFrame changes accordingly.
See Client API for details.
