How can I clear an mgraphics canvas?
Dec 11 2016 | 9:38 am
So today I managed to fumble my way through using jsui to render a picture of a buffer's waveform. The only problem with it is that if I tell it to to render a different buffer, it just adds to what it's previously drawn, rather than starting fresh. The obvious solution to this would be to somehow clear the current canvas, but after combing over the mgraphics quickstart guide, the forum, and the jsui object I've been using as a sort of reference (warpy2.js), I'm still stumped on how exactly I go about that. It seems the redraw method is made for that sort of thing, but personally I'm not having any luck with it. Anyone have any ideas?