ColorDisplayDefs: CEDAR DEFINITIONS ~ BEGIN ColorDisplayType: TYPE ~ MACHINE DEPENDENT { none, -- no color display standard, -- standard resolution display, approx. 640 by 480 pixels highResolution, -- high resolution display, approx. 1024 by 768 pixels (WORD.LAST) -- room for others }; ColorMode: TYPE ~ RECORD[ full: BOOL _ FALSE, -- if TRUE, use 24 bits per pixel (and ignore following fields) bitsPerPixelChannelA: [0..8] _ 0, -- A channel bits per pixel (if 0, A channel is off) bitsPerPixelChannelB: [0..8] _ 0 -- B channel bits per pixel (if 0, B channel is off) ]; colorMode24: ColorMode ~ [full: TRUE, bitsPerPixelChannelA: 0, bitsPerPixelChannelB: 0]; ChannelValue: TYPE ~ [0..256); ColorValue: TYPE ~ [0..256); ColorTriple: TYPE ~ RECORD [red, green, blue: ColorValue]; ChannelsVisible: TYPE ~ {none, aOnly, bOnly, all}; END. ColorDisplayDefs.mesa Copyright c 1985 by Xerox Corporation. All rights reserved. Doug Wyatt, April 24, 1985 8:48:53 pm PST Definitions shared by ColorDisplayFace and Terminal. Encodes the possible modes of operation for the color display. Full color mode, 24 bits per pixel. Channel A supplies interleaved red and green values, channel B supplies blue values. A pixel value from the A or B channel. An 8-bit color value (red, green, or blue) from a color map. A triple of Color values. Used to control which channels are displayed. Κe˜codešœ™Kšœ Οmœ1™™>—K˜šœ Ÿœ4˜XK™#K™TK™—K˜šœŸœ ˜K™&—K™šœ Ÿœ ˜Kšœ<™<—K˜šœ ŸœŸœ ˜:K™—K˜šœŸœ˜2K™-—K˜KšŸœ˜—…—RΥ