getColor

fun getColor(x: Int, y: Int): Color

Gets the color of the pixel at the specified screen coordinates.

Return

The color of the pixel at the specified coordinates.

Parameters

x

The X coordinate of the pixel.

y

The Y coordinate of the pixel.