How to remove the background from png canvas?

How to remove black background from image?
https://codepen.io/Kravchenko55/pen/yaJLPE
July 4th 19 at 23:33
1 answer
July 4th 19 at 23:35
Solution
var clear = function() {
 context.clearRect(0, 0, w, h);
};

Find more questions by tags CanvasCSSHTMLJavaScript