VGA

getPixel()

Description

Gets color of a pixel.

Syntax

VGA.getPixel( x, y )

Parameters

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

Returns

Color of a pixel

Example

typedef unsigned char pixel_t;
int num = 5;
int i;
int x = 0;
int y = 0;
pixel_t pix[num];

for( i=0; i<num; i++)
{

pix[ i ] = VGA.getPixel();
x++;

}

See also

  

Share |