Download AMIGOS Graphics Operating System Reference Manual
Transcript
Page 7-78 GSCM Reference Sheet GSCM Set Color Mode FUNCTION: GSCM sets the color definition mode for subsequent GSCR (set color representation) and GQCR (inquire color representation) functions. The mode may be set to either the HLS (hue, lightness, saturation) or RGB (red, green, blue) mode. ASSEMBLER CALLING SEQUENCE The format for the GSCM function is: GSCM gcb,clrmode,status where: gcb Specifies the address of the graphics control block associated with the workstation used. clrmode Specifies the color mode to be used for subsequent color setting and inquiry functions. The defined color modes are as follows: 0 = 1 = status HLS (hue, lightness, saturation) RGB (red, green, blue) Specifies a register in which 16-bits of status are returned. Status field values are defined in Appendix A, "Status Codes and Messages." AMIGOS Reference Manual, Rev. 01