Skip to content

0K Clearing the canvas

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

How to use clear

Use the clear function

// transparent canvas clearing
clear()

// canvas clearing with color
clear('#f44')

// canvas clearing with semi-transparent color
clear('#f448')

Example

preset(({clear}) => {
    clear('#f44')
}, '#canvasForClearing')
Clone this wiki locally