Available on: d32 c128 c64 vic20 atari to8 plus4 pc128op d64 mo5 coco3 coco See also: BITMAP DISABLE TILEMAP ENABLE

BITMAP ENABLE

Enable bitmap graphics on the target machine. Bitmap resolution and colors depends on hardware. Enabling the bitmap also sets the starting address in memory, for those computers that have graphics mapped in memory.

Given the great variety of hardware that ugBASIC supports and the isomorphic approach adopted, this commands can be used to require a specific resolution, color depth and other characteristics in a hardware independent way.

In this regard, the following approach has been adopted. It is possible to ask for specific chacteristics, such as height and width of the screen. However ugBASIC will choose the closest resolution, based on the hardware on which it will runs.

Likewise, if no type of resolution constraint is set, the best is offered.

To change resolution and colors, you can use the ([width],[height],[colors]), ([width],[height]) or the ([colors]) syntax after BITMAP ENABLE command. So, if you omit a parameters, it means that it is not important to set.

SYNTAX

 BITMAP ENABLE ( width, height [, colors ] )
 BITMAP ENABLE ( colors )


Legend
  • id : identifier
  • type : datatype
  • v : value
  • "..." : string
  • [...] : optional

EXAMPLE

 BITMAP ENABLE
 BITMAP ENABLE (320,200,16)
 BITMAP ENABLE (160,200,2)


Used in:

ABBREVIATION: Bm En

Join BASIC 10Liner Contest with ugBASIC!

An interesting competition is held at the beginning of each year: the BASIC 10Liner Contest. It is possible to use ugBASIC to participate in the next "BASIC10Liner" competition, in the following categories:

  • PUR-120 - A game in 10 lines of max 120 characters (w/abbrev.)
  • EXTREME-256 - A game in 10 lines of max 256 characters (w/abbrev.)
  • SCHAU - Any program in 10 lines of max 256 characters (w/abbrev.)
In order to reduce space you can use this abbreviation for this instruction:

BITMAP ENABLE ↔ Bm En

Any problem?

If you have found a problem with this keyword, if you think there is a bug or, more simply, you would like it to be improved, open an issue for this example on GitHub.
Thank you!

open an issue BACK TO KEYWORDS