Skip to content

title: "vbmClearTile" description: TRSE built-in method (from IDE help)


vbmClearTile

Systems: VIC20
Parameters: a


vbmClearTile( [address] );

  • [address] - address of a tile to draw to the bitmap.

Description

Clears an 8x8 tile at the current location pointed to by screenmemory. Effectively 'cuts-out' the tile shape from the bitmap.

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 vbmClearTile( gfx ); // Cuts out the shape of the tile from any pixels on the bitmap

See also

  • vbmDrawTileMap