Image.clear

Clear the image, replacing every pixel with given color.

The clear(Color) overload only supports true color images. For paletted images, use clear(PalettedColor). The latter can also be used for building true color images using a palette, if one is supplied in the image at the time.

  1. void clear(Color color)
    struct Image
    void
    clear
  2. void clear(PalettedColor entry)

Meta