VGA

writeArea()

Description

Writes to an area in the screen.

Syntax

VGA.writeArea( x, y, width, height, source )

Parameters

x - x coordinate of an area
y - y coordinate of an area
width - width of an area from x
height - height of an area from y
source - source pixel; color

Returns

none

Example

const int blocksize = 5;
const int board_x0 = 40;
const int board_y0 = 5;

unsigned char scorearea[ 9 * ((8* SCORECHARS)+1) ];

int x = 5;
int y = 10;
int ay = board_y0 + (y * blocksize);
int ax = board_x0 + (x * blocksize);

VGA.writeArea(ax, ay, blocksize, blocksize, 0x0E);

See also

  

Share |