PHIGS by Example by William A. Giovinazzo & William A. Gaman

PHIGS by Example by William A. Giovinazzo & William A. Gaman

Author:William A. Giovinazzo & William A. Gaman
Language: eng
Format: epub
Publisher: Springer-Verlag Wien 2012
Published: 2015-04-12T16:00:00+00:00


4.1 Color Representation

As we have seen in Chapter 1, one way to specify an output primitive’s color is to set a color index. Each workstation has a color table that contains a list of all the colors for that workstation. The color index specified for the output primitive is an index into this table. Since the color table for each workstation can vary, we say that the color index is workstation dependent.

Figure 4.2 graphically demonstrates how the colors can vary from workstation to workstation. The structure specifies an index of 1 into the color table for an output primitive, it then posts the structure to workstation 1 and workstation 2. The color contained in entry 1 for each of these workstations is different. The output primitive that is resultantly displayed on the workstation, therefore, is different. This can be very useful in many applications when color is a function of some characteristic of a model. If, for example, we wished to demonstrate varying stress on an object, the index into the table can be a function of the stress on the object. We can also use multiple workstations with different color tables to model different function of the same structure. Figure 4.2. Indexed color.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.