drawon(canvas: FrameBuffer): Comp
Specifies the FrameBuffer the object should be drawn on.param
canvas
// Draw on another canvas let canvas = makeCanvas(width(), height()) let beanOnCanvas = add([ sprite("bean"), drawon(canvas.fb), ])
param
canvas
// Draw on another canvas let canvas = makeCanvas(width(), height()) let beanOnCanvas = add([ sprite("bean"), drawon(canvas.fb), ])
Assets
Components
Component Types
Input
Events
Info
Math
Misc
Draw
Level
Plugins
Button Bindings