Image.opaque

Changes all pixels having the target color to the fill color.

class Image
void
opaque

Parameters

target
Type: Color

The color to be replaced.

fill
Type: Color

The replacement color.

invert
Type: bool

If true, the target pixels are all the pixels that are not the target color.

channel

The affected channels.

Meta