Put_Pixel

Put_Pixel(X, Y, Color)

 

Put_Pixel is a call that changes the color of the pixel at location X,Y to that specified by Color.

 

Note:  A graphics window must be open when Put_Pixel is called or a run-time error will occur.
 

Examples:

 

Put_Pixel(50,50,Red);

 

changes the pixel at (50,50) to red. If ColorVar has the value 2, then

 

Put_Pixel(50,50,ColorVar);

 

changes the pixel at (50,50) to Green (color represented by number 2).