Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_pixwrite() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_PIXWRITE()

 DESCRIPTION

 C_PIXWRITE() sets the pixel, at a given row and column coordinate,
 to a specified color.

 SYNTAX

 C_PIXWRITE(row, column, color)

 PARAMETERS

 row (N) is the graphics row coordinate to set the pixel.

 column (N) is the graphics column coordinate to set the pixel.

 color (N) is the numeric color code to set the pixel.  The codes
 are as follows:

 CODE   COLOR
 ----   -----
 0      Pixel Not Set
 1      Blue
 2      Green
 3      Cyan
 4      Red
 5      Magenta
 6      Brown
 7      White

 RETURNS

 There is no return value.

 EXAMPLES

 c_setmode(16)
 ...
 c_pixwrite(100,100,4)   && Sets pixel at coordinates 100,100 to red

 c_pixwrite(175,250,7)   && Sets pixel at coordinates 175,250 to white
 ...
 ...
 for i = 1 to 100
   c_pixwrite(50,100+i,2)   && Draws a line from 50,100 to 50,200 in green
 next


See Also: C_PIXREAD() C_GETMODE() C_SETMODE() C_GETVIDEO()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson