Gets the pixel at the specified position from a Canvas.
Valid x and y values start at 0 and go up to canvas width and height minus 1.
This function can be very slow: it can cause the CPU to wait for the GPU to finish all the work currently in its queue, which can be a whole frame's worth (or more.)
r, g, b, a = Canvas:getPixel( x, y )
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.