Bypass navigation menu
RGB Classic Games
Keeping the classics alive
Currently hosting 566 great games!
Return to Chapter 2

PointColor(X, Y, Color)

Returns the color of the point at the specified X, Y position.

Parameters

X - Horizontal position of point
Y - Vertical position of point
Color - Variable to hold color of point

Examples

BASIC

CALL PointColor(100, 100, PixelColor%)

PASCAL

PointColor(100, 100, PixelColor);

BGI equivalent

unsigned getpixel(int x, int y);