User Tools

Site Tools


ugbasic:user:kw:color_back
Translations of this page:


ugBASIC User Manual

COLOR BACK ✓

SYNTAX

   COLOR BACK color

PURPOSE

The COLOR BACK command used on target that support both color graphics, backgorund colors and specialized clearing screen routines. Its primary function is to set the background color of the screen or a specific area of the screen, and then clearing the screen using that color.

This command can be used to customize the appearance of programs by creating colored backgrounds, and could be essential for creating simple games or graphical applications, where the background color contributes to aesthetics and readability. This can be used to highlight certain areas of the screen or to create visual contrasts.

The availability of colors and the accuracy of their representation depend on the computer's video chipsed.

EXAMPLE

  COLOR BACK RED
  COLOR BACK WHITE

See also the following example files:

ABBREVIATION

 CrBa

AVAILABLE ON

  • Dragon 32
  • Commodore 128 (Zilog Z80)
  • Commodore 128 (MOS 8502)
  • SEGA SG-1000
  • ZX Spectrum 48
  • Commodore 64
  • Commodore VIC-20
  • Atari (400/800)
  • Commodore PLUS/4
  • VG-5000
  • Olivetti Prodest PC128
  • Dragon 64
  • Thomson MO5
  • Amstrad CPC 664
  • SEGA SC-3000
  • ColecoVision
  • TRS-80 Color Computer 3
  • MSX
  • TRS-80 Color Computer

SEE ALSO

ANY PROBLEM?

If you have encountered a problem using this command, if you think there is a bug or the explanation is unclear, please open an issue for this keyword on GitHub. Thank you!

POWERED BY