Skip to content

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


vbmDrawTile

Systems: VIC20
Parameters: a


vbmDrawTile( [address] );

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

Description

Draws an 8x8 tile to the current location pointed to by screenmemory.

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 vbmDrawTile( gfx ); // draws the tile, replacing any pixels underneath it

See also

  • vbmDrawTileMap