{{htmlmetatags>metatag-robots=()
metatag-title=(COLOR BORDER | ugBASIC User Manual)
metatag-keywords=(ugBASIC,Commodore 64,Commodore PLUS/4,ZX Spectrum)
metatag-description=(Manual page for COLOR BORDER)
metatag-media-og:image=(:ugbasic:logo-ugbasic-fb.png)
metatag-og:title=(COLOR BORDER | ugBASIC User Manual)
metatag-og:description=(Manual page for COLOR BORDER)
}}
====== ugBASIC User Manual ======
===== COLOR BORDER ✓ =====
===== SYNTAX =====
COLOR BORDER value
==== PURPOSE ====
The ''COLOR BORDER'' command allows you to redefine the color used by the graphics chipset
for the border, 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 or even of the border: 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).
==== EXAMPLE ====
COLOR BORDER #$1
See also the following example files:
* ''[[https://github.com/spotlessmind1975/ugbasic/tree/main/examples/control_uncond_jumps_01.bas|control_uncond_jumps_01.bas]]''
* ''[[https://github.com/spotlessmind1975/ugbasic/tree/main/examples/control_uncond_jumps_02.bas|control_uncond_jumps_02.bas]]''
==== ABBREVIATION ====
CrBo
==== AVAILABLE ON ====
* Commodore 128 (Zilog Z80)
* Commodore 128 (MOS 8502)
* SEGA SG-1000
* ZX Spectrum 48
* Commodore 64
* Commodore VIC-20
* Atari (400/800)
*
* Commodore 64+REU
* Commodore PLUS/4
* Olivetti Prodest PC128
* Thomson MO5
* Amstrad CPC 664
* SEGA SC-3000
* ColecoVision
* TRS-80 Color Computer 3
* MSX
* TRS-80 Color Computer
==== SEE ALSO ====
[[COLOR]] [[SHADES (constant)]] [[RGB]]
==== ALIAS FOR ====
[[BORDER]]
==== ANY PROBLEM? ====
If you have encountered a problem using this command, if you think there is a bug or the explanation is unclear, please [[https://github.com/spotlessmind1975/ugbasic/issues/new?title=ISSUE ON COLOR BORDER|open an issue]] for this keyword on GitHub. Thank you!===== POWERED BY =====
[[:ugbasic:user:index|{{ :ugbasic:user:logo-ugbasic.png?nolink&600 |}}]]