title: "vbmDrawTileE" description: TRSE built-in method (from IDE help)
vbmDrawTileE
Systems: VIC20
Parameters: a
vbmDrawTileE( [address] );
- [address] - address of a tile to draw to the bitmap.
Description
Draws an 8x8 tile to the current location pointed to by screenmemory. EOR mode will 'toggle' pixels. Can be used to draw a tile, then draw again to restore the bitmap to what it was before.
There are four ways to draw a tile:
- vbmDrawTile - draws a tile, replacing the pixels at the current position on the bitmap
- vbmDrawTileO - draws a tile and merges it over the current pixels on the bitmap
- vbmDrawTileE - draws a tile and merges it using the EOR operation with the bitmap
- vbmClearTile - clears, or 'cuts out' the tile shape from the pixels on the bitmap
Example
gfx : array[] of byte = (
%11111111, %10000001, %10000001, %10011001,
%10011001, %10000001, %10000001, %11111111
);
...
vbmSetColumn( 3 ); // set the fourth column (remember, starts at 0)
screenmemory := screenmemory + 20; // move 20 pixels down
vbmDrawTileE( gfx ); // draws the tile, merge with any pixels underneath it using an EOR operation
See also
- vbmDrawTileMap