Skip to content

0L Accesing Canvas and Context of HTML5 Canvas API

Luis Murillo Baltodano edited this page Aug 3, 2020 · 1 revision

Using 'c' and 'ctx'

preset(({c, ctx}) => {
    console.log(`canvas object of ${c.id}!!`, c)
    console.log(ctx, 'and the context')
}, '#TheCanvasAPI')
Clone this wiki locally