public Color getPixel ( int x , int y ) { predraw ( ) ; GL . glReadPixels ( x , screenHeight - y , 1 , 1 , SGL . GL_RGBA , SGL . GL_UNSIGNED_BYTE , readBuffer ) ; postdraw ( ) ; return new Color ( translate ( readBuffer . get ( 0 ) ) , translate ( readBuffer . get ( 1 ) ) , translate ( readBuffer . get ( 2 ) ) , translate ( readBuffer . get ( 3 ) ) ) ; }
Get the colour of a single pixel in this graphics context