GDDM-GKS V1R1 Programming Guide and Reference
|
Previous topic |
Next topic |
Contents |
Index |
Contact z/OS |
Library |
PDF |
BOOK
GSCR GDDM-GKS V1R1 Programming Guide and Reference SC33-0334-00 |
|||||||||||||
Purpose
Function: To set color representation. Attribute function. Associates a color with a color index at a workstation, using the RGB (red, green, blue) color model. Parameters wkid (specified by user) (fullword integer)
ci (specified by user) (fullword integer)
cr (specified by user) (short floating point)
cg (specified by user) (short floating point)
cb (specified by user) (short floating point)
Operating states WSOP, WSAC, SGOP Related functions Inquire list element of color indexes (GQECI), Inquire color representation (GQCR), Inquire color facilities (GQCF), Inquire predefined color representation (GQPCR), Inquire maximum length of workstation state tables (GQLWK), Inquire dynamic modification of workstation attributes (GQDWKA) Description This function associates a color with a color table index at the workstation specified by wkid. The function uses the RGB color model, defining a color in terms of red, green, and blue intensities. If you specify a color that is not available at the workstation, the closest available color is used. The function Inquire color representation (GQCR) returns the realized values on any device. When you change the color associated with an index, all primitives with that index are drawn in the new color. If you draw a primitive with an undefined color index, the color associated with color index 1 at the workstation is used. GKS supports the indexes 0 (background) and 1 (foreground) as initial preset values for all devices. You can reset the values for background and foreground by resetting the representations for these indexes to the desired values. Principal errors
|
Copyright IBM Corporation 1990, 2012 |