•  Back 
  •  Screen functions 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help page 
  •  Show info about hypertext 
  •  View a new file 
Topic       : TOS - The Operating System
Author      : 
Version     : tos.hyp (December 19, 2008)
Subject     : Programmieren/Atari
Nodes       : 3010
Index Size  : 93790
HCP-Version : 5
Compiled on : Atari
@charset    : atarist
@lang       : 
@default    : Title
@help       : 
@options    : +g -i -s +x +zz -t4
@width      : 70
View Ref-File4.5.15  Setcolor                                                   TOS

 Name:         »Setcolor« - Sets one of 16 colours.

 Opcode:       7

 Syntax:       int16_t Setcolor( int16_t colornum, int16_t color );

 Description:  The XBIOS routine Setcolor obtains the value of a 
               colour register or sets this to a new value. The 
               following apply:

                Parameter  Meaning 
                colornum   New colour value (-1 = don't alter) 
                color      Number of the colour register (0..15) 

 Return value: The function returns the old value of the colour 
               register.

 Availability: All TOS versions.

 Group:        Screen functions

 See also:     Binding   Setpalette