clear method

void clear([
  1. Color? color
])

Set all pixels in the image to the given color. If no color is provided the image will be initialized to 0.

Implementation

void clear([Color? color]) => data?.clear(color);