getpixel [<X>,<Y>]
Gets the colour of a given pixel as a map with R, G, and B keys.
Parameters:
- The coordinates of the pixel to get the colour of. A list with 2 values is expected where the first value is the X coordinate and the second value is the Y coordinate.
Returns: The R, G, and B values of the pixel in the form of a map with 3 keys being R, G, and B, each with its value in the map being the colour value of the pixel.