Table of Contents

ugBASIC User Manual

COLOR BACKGROUND

SYNTAX

   COLOR BACKGROUND value
   COLOR BACKGROUND index TO value

PURPOSE

The COLOR BACKGROUND command allows you to redefine the color used by the graphics chipset for the background, where this is possible. “Redefinition” means assigning one of the possible colors to specific registers called “palette registers”.

On some systems this is not possible at all, due to limitations of the chipset or the absence of registers: for this reason, in such cases the command is ignored. On other systems this corresponds to the modification of specific registers, to which one of the available colors is assigned. On others it is possible to assign certain shades, which therefore go beyond the number of available colors.

Where it is possible to assign a shade, the value can range from 0 to the constant SHADES. However, it may be more practical to use the RGB function, which allows you to calculate the shade starting from the color components (red, green and blue).

ABBREVIATION

 CrBg

SEE ALSO

COLOR SHADES (constant) RGB

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