Sun Microsystems 800-1256-04 — Sun Microsystems 800-1256-04 SunCGI Reference Manual PDF

7 4 SunCGJ Reference Manual Table 4-4 Normal Alignment Values 0 Character Horizontal Vertical Path Normal Normal RIGHT LEFT BASELINE LEFT RIGHT BASELINE UP CENTER BASELINE DOWN CENTER TOP ENOTOPOP [5] CGI not in proper state CGI shall be in state VDOP, VSOP, or VSAC. Errors 4.9. Color Attributes SunCGI supports only one color specification mode - INDEXED. This color specification mode means that the red, green, and blue values (hereafter referred to as RGB values) are obtained from a table known as the color lookup table. The initial values of the color lookup table are provided in Table 4-5.

If the dev- ice is monochrome, nonzero color values are displayed as black; zero is displayed as white. Table 4-5 Default Color Lookup Table Index I Color 0 black 1 red 2 yellow 3 green 4 cyan 5 blue 6 magenta 7 white 0 Color Table Cerror color_table(istart, clist) Cint istart; /* starting address*/ Ccentry *clist; /* color triples and number of entries*/ color_ table defines RGB entries into the color lookup table. The color lookup table is initialized based on the depth of the display frame buffer and the cmapsize field provided in the Cvwsurf structure provided to open_ vws.

A monochrome device has an unwritable color map; non-zero color indices are displayed as black, zero is displayed as white. A color device gets a color map segment with 8 entries if the cmapsize field is zero upon opening the view sur- face. The 8 default color values are given in Table 4-5. Larger color maps are also initialized to evenly spaced RGB values. The structure Ccentry contains elements that describe a color map entry. 0 Version C of 17 March 1986