drawon(canvas: FrameBuffer): Comp
Specifies the FrameBuffer the object should be drawn on.
param
canvas- The FrameBuffer to draw on.
// Draw on another canvas let canvas = makeCanvas(width(), height()); let beanOnCanvas = add([ sprite("bean"), drawon(canvas.fb), ]);
returns
The drawon comp.
since
v3000.0