Ask coding questions

← Back to all posts
How do I clear the canvas in Kaboom.JS?
NotMrMan (107)

I am working on my own project, and the text overlaps whenever I trigger it. Is there a way to clear the canvas?

Comments
hotnewtop
Coder100 (17144)

just delete the objects.

let obj = add([...]);
destroy(obj);