-
Notifications
You must be signed in to change notification settings - Fork 7
BASIC FILL TILEMAP Statement
Curtis F Kaylor edited this page Oct 14, 2023
·
1 revision
TYPE: plusBASIC graphics statement
FORMAT: FILL TILEMAP ( startcol , startrow ) - ( endcol , endrow ) TILE tile ATTR attrs PALETTE palette
Action: Fills a rectangular section of the tilemap with the specified tile, attributes and color palette.
- startcol and startrow specifies the upper-left corner of the rectangle.
- endcol and endrow specifies the lower-right corner of the rectangle.
- tile is the index of the tile to fill with.
- attrs is the tile attributes.
- palette is the tile palette.
- Illegal Quantity results from any of the following conditions:
- startcol or endcol are not in the range 0 through 63.
- startrow or endrow are not in the range 0 through 31.
- endcol is less than startcol or endrow is less than startrow.
- tile is not in the range 0 through 511.
- attrs is not in the range 0 through 255.
- palette is not in the range 0 through 3.
FORMAT: FILL TILEMAP TILE tile ATTR attrs PALETTE palette
Action: As above, but fills entire tilemap.