Important: The information in this document is obsolete and should not be used for new development.
RGBColor
You usually specify a color to Color QuickDraw by creating anRGBColorrecord in which you assign the red, green, and blue values of the color. For example, when you want to set the foreground color for drawing, you create anRGBColorrecord that defines the foreground color you desire; then you pass that record as a parameter to theRGBForeColorprocedure.In an
RGBColorrecord, three 16-bit unsigned integers give the intensity values for the three additive primary colors.
TYPE RGBColor\xDD= RECORD red:\xDD Integer; {red\xDDcomponent} green: Integer; {green\xDDcomponent} blue: Integer; {blue\xDDcomponent} END;
Field Description
red- An unsigned integer specifying the red value of the color.
green- An unsigned integer specifying the green value of the color.
blue- An unsigned integer specifying the blue value of the color.