convertToWhite method
void
convertToWhite()
Implementation
void convertToWhite() {
for (var y = 0; y < image.height; y++) {
for (var x = 0; x < image.width; x++) {
var pixel = image.getPixel(x, y);
if (pixel.a > 0) {
image.setPixel(x, y, image.getColor(255, 255, 255, pixel.a));
}
}
}
}