•  Back 
  •  VDI Attributes 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  %About 
  •  Show info about hypertext 
  •  View a new file 
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-FileEsetColor()
Setcolor()
vs_color()                                                              VDI

Syntax

VOID vs_color( handle, color, rgb )
WORD handle, color;
WORD *rgb;

Function      vs_color() sets the color of a palette index.

Opcode        14

Availability  Supported by all devices.

Parameters    handle specifies a valid workstation handle. color specifies
              the color register of the color to modify. rgb points to an
              array of three WORDs which contain the red, green, and blue
              values respectively (0-1000) which will be used to map the
              color index to the closest color value possible.

Binding       contrl[0] = 14;
              contrl[1] = 0;
              contrl[3] = 4;
              contrl[6] = handle;

              intin[0] = color;
              intin[1] = rgb[0];
              intin[2] = rgb[1];
              intin[3] = rgb[2];

              vdi();

See Also      EsetColor(), Setcolor()

Group         VDI Attributes