Image.setPixel

Change the color of a pixel.

This function doesn't check the validity of the pixel coordinates, using out-of-range values will result in an undefined behaviour.

class Image
void
setPixel
(
uint x
,
uint y
,
)

Parameters

x
Type: uint

X coordinate of pixel to change

y
Type: uint

Y coordinate of pixel to change

color
Type: Color

New color of the pixel

Meta