User Tools

Site Tools


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


ugBASIC User Manual

COLOR

SYNTAX

   COLOR index, shade

PURPOSE

This command allow to redefine every single color, and therefore to each index can actually be assigned a hue among the hues available. The indices are a small selection from a wide range of possible colors.

If we wish, we can set this number directly to a value between 0 and SCREEN SHADES. Typically, however, we use the RGB function that allows us to mix the gradient by obtaining it from the sum of three simple components.

EXAMPLE

  COLOR 0, $fff

ABBREVIATION

 Cr

AVAILABLE ON

  • Commodore 128 (MOS 8502)
  • Commodore 64
  • Commodore VIC-20
  • Atari (400/800)
  • Commodore PLUS/4
  • Olivetti Prodest PC128
  • Thomson MO5

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