VGA

putPixel()

Description

Sets color of a pixel in specified coordinates.

Syntax

VGA.putPixel( x, y )
VGA.putPixel( x, y, color )

Parameters

x - x coordinate of pixel
y - y coordinate of pixel
color - color of pixel

Returns

none

Example

int i;
int x = 0;
int y = 0;
for( i=0; i<5; i++)
{

VGA.putPixel( x, y, 0xE0 );
x++;

}

See also

  

Share |