Image.getPixel

Get 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
const
getPixel
(
uint x
,
uint y
)

Parameters

x uint

X coordinate of the pixel to get

y uint

Y coordinate of the pixel to get

Return Value

Type: Color

Color of the pixel at coordinates (x, y)

Meta