Topic : The ATARI Compendium
Author : Scott Sanders / JAY Software
Version : 1.25 (20/6/2003)
Subject : Documentation
Nodes : 1117
Index Size : 32614
HCP-Version : 6
Compiled on : Atari
@charset : UTF-8
@lang : en
@default :
@help : %About
@options : +g -i -t4 +y +z
@width : 100
View Ref-FileVgetRGB()EsetPalette()Setpalette()vs_color()VsetRGB() XBIOSSyntaxVOID VsetRGB( index, count, rgb )
WORD index, count;
RGB *rgb;
Function VsetRGB() sets palette registers using 24-bit RGB values.
Opcode 93 (0x5D)
Availability Available if the '_VDO' cookie has a value of 0x00030000 or
greater.
Parameters index specifies the first palette index to modify.
count specifies the number of palette entries to modify.
rgb is a pointer to an array of RGB elements which will be
copied into the palette.
Binding pea rgb
move.w count,-(sp)
move.w index,-(sp)
move.w #$5D,-(sp)
trap #14
lea 10(sp),sp
Comments This call is device-dependent by nature. It is therefore
recommended that vs_color() be used instead.
See Also VgetRGB(), EsetPalette(), Setpalette(), vs_color()