RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Downloads | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

ColourTrans_ReadPalette

ColourTrans
» SWI Calls
» ColourTrans_ReadPalette

ColourTrans_ReadPalette

(SWI &4075C)
Entry
R0 Source mode / sprite area
R1 Source palette pointer / sprite
R2 Pointer to buffer, or 0 to return size needed in R3
R3 Size of buffer (if R2 is non-zero)
R4 Flags
Exit
R2 Incremented by words written
R3 Remaining size of buffer

Use

The purpose of this call is to read either the screen’s palette, or a sprite’s palette.

Notes

All entries are returned as true 24-bit RGB, calibrated if required.

In 256 colour modes the full 256 palette entries are returned, rather than the 16 used by VIDC 1.

See also

  • ColourTrans_WritePalette
Revised on November 26, 2013 13:39:13 by Jeffrey Lee (213) (195.72.173.131)
Edit | Back in time (3 revisions) | See changes | History | Views: Print | Source | Linked from: ColourTrans_WritePalette, ColourTrans SWI Calls, ColourTrans mode identification, ColourTrans_ReadPalette Flags, BlendTable_GenerateTable, InverseTable_SpriteTable, InverseTable, Colour Vector SWI Numbers

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