Tutorial by Topics: clearing

void clearRect(x, y, width, height) ImageData createImageData(width, height) None of these methods will produce transparent pixels if the context was created with the alpha: false parameter.

Page 1 of 1