RISC OS Open
Safeguarding the past, present and future of RISC OS for everyone
ROOL
Home | News | Downloads | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

VDU 19

Programmer's Reference Manuals
» VDU Codes
» VDU 19

VDU 19 (&13)

Use

Selects the actual colour that is to be displayed for each logical colour.

Syntax

VDU 19,logical colour,mode,red,green,blue

Parameters

logical colour Colour to set
mode how to set the colour
red, green, blue physical colour information

Use

VDU 19 defines the colour palette relationship. It causes a specified logical colour for either the screen, border or pointer to be represented by a given physical colour.

The action depends on the value of ‘mode’ as follows:

mode = 0 – 15 logical colour = physical colour specified by mode parameter. red, green and blue are ignored, and should be zero
mode = 16 both flash palettes for logical colour = red units red, green units green, blue units blue
mode = 17 first flash palette for logical colour = red units red, green units green, blue units blue
mode = 18 second flash palette for logical colour = red units red, green units green, blue units blue
mode = 24 border colour = red units red, green units green, blue units blue; logical colour is not used, and should be zero
mode = 25 logical colour (1 – 3) of pointer = red units red, green units green, blue units blue

If you add 128 to the ‘mode’ value, you also set the ‘supremacy’ bit of the appropriate palette entry. This is used when the computers’ video is mixed with an external video source, to provide a superimposed image.

Notes

Use of semi-colon punctuation in BASIC sends number as two-byte pair: lo followed by hi.

See also

  • VDU 17
  • VDU 18
Revised on April 27, 2021 20:08:27 by Stuart Swales (8827)? (143.159.125.51)
Edit | Back in time (5 revisions) | See changes | History | Views: Print | Source | Linked from: OS_Word 12, VDU Codes, VDU 18, VDU 17, OS_ReadPalette, OS_Word 21_0

Search the Wiki

Social

Follow us on and

ROOL Store

Buy RISC OS Open merchandise here, including SD cards for Raspberry Pi and more.

Donate! Why?

Help ROOL make things happen – please consider donating!

RISC OS IPR

RISC OS is an Open Source operating system owned by RISC OS Developments Ltd and licensed primarily under the Apache 2.0 license.

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2018 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys