DESCRIPTION: This module tests the colour facilities of the workstation and the appearance of colored primitives. SEMANTIC REQUIREMENTS: *** *** *** Support of colour by workstation *** *** *** *** Number of colors ***#F 277
SR1. <Inquire colour facilities> returns the number of available colors for the specified workstation type.
#F 277
SR2. Every workstation type supports at least two colours.
#F 69 236 277
SR3. The workstation can realize a continuous range of colours if the reported number of available colours is 0.
*** Color available ***#F 277
SR4. <Inquire colour facilities> returns the ability to display colours as COLOUR or MONOCHROME for the specified workstation type.
#F 69 236 277
SR5. A workstation type has COLOUR for the value of its 'colour available' property if and only if it has displayable colours of various non-neutral hues.
#F 69 236 277
SR6. A workstation type has MONOCHROME for the value of its 'colour available' property if and only if it has displayable colours of at most one non-neutral hue.
*** Primaries ***#F 277
SR7. <Inquire colour facilities> returns each of the three primary colours as a CIELUV colour specification for a given workstation type.
*** Predefined colours ***#F 277
SR8. <Inquire colour facilities> returns the number of predefined colour indices for the specified workstation type.
#F 278
SR9. <Inquire predefined colour representation> returns the colour specification for a predefined colour index according to the default color model.
#F 277 278
SR10. The n predefined colour indices in the Workstation Description Table (WDT) are indexed as 0 to n-1.
#F 277 278
SR11. Predefined colour table indices 0 and 1 always exist.
#F 278
SR12. The predefined colour indices number 0 and 1 have different colour specifications.
#F 3 235 236 278
SR13. Immediately after <open workstation>, for each WDT predefined colour index there exists a Workstation State List (WSL) colour table entry with the same attributes, including the same colour index.
#F 3 235 236 278
SR14. Immediately after <open workstation>, the colour table contains nothing but the entries initialized from the WDT predefined colour table.
#F 276 278
SR15. The colour coordinates of every predefined colour index are valid (with respect to the default colour model) and realizable for the workstation type.
*** Color models ***#F 276
SR16. <Inquire colour model facilities> returns the list of available colour models and the default colour model for the specified workstation type.
#F 72 234 276
SR17. All the colour models in the list of available colour models are valid and realizable for the specified workstation type.
#F 276
SR18. The workstation type's default colour model returned by <inquire colour model facilities> is in the list of available colour models.
#F 276
SR19. The list of available colour models contains the registered types 1 (RGB) and 2 (CIE).
#F 3 234 276
SR20. Immediately after <open workstation>, the default colour model for the corresponding workstation type is in effect.
#F 69 72 236
SR21. The current colour model governs the interpretation of the colour coordinate parameters used in subsequent calls to <set colour representation> and <inquire colour representation>. Changing the colour model does not affect the colours associated with the colour table indices.
#F 276
SR22. Colour model 1 is predefined as RGB. The RGB color space is a unit cube (0-1 in all three dimensions) in which the primary axes represent red, green, and blue. Fully saturated renditions of these colors are associated with (1,0,0), (0,1,0), and (0,0,1), respectively. Other points are rendered by treating these primaries additively.
#F 276
SR23. Colour model 2 is predefined as CIELUV. In the CIELUV color space, hue is determined by the first two parameters u' and v', as defined in the 1976 CIE standard and the third parameter, Y, determines luminance value (0 for black, 1 for fully lighted).
#F 276
SR24. Colour model 3 is predefined as HSV. The first parameter, H, determines the hue, with values of 0 for red, 1/6 for yellow, 2/6 for green, 3/6 for cyan, 4/6 for blue, and 5/6 for magenta. The second parameter, S, determines color saturation, with 0 for unsaturated (gray scale) and 1 for fully saturated colors. The third parameter, V, determines the brightness, with 0 for black and 1 for fully bright colors.
#F 276
SR25. Colour model 4 is predefined as HLS. The first parameter, H, determines the hue, with values of 0 for red, 1/6 for yellow, 2/6 for green, 3/6 for cyan, 4/6 for blue, and 5/6 for magenta. The second parameter, L, determines the brightness, with 0 for black, 0.5 for fully bright colors, and 1 for white. The third parameter, S, determines color saturation, with 0 for unsaturated (gray scale) and 1 for fully saturated colors.
#F 69 236
SR26. The range of valid values for all parameters for all four predefined color models is 0 to 1.
#F 69
SR27. Any colour coordinates within the range of the current colour model may be specified when invoking <set colour representation>.
#F 276
SR28. When available on the workstation, colour models greater than 4 work as specified in the ISO register.
#F 276
SR29. When available on the workstation, colour models less than one work as specified in the implementor documentation.
*** *** *** *** Colour appearance *** *** *** ***#F 69 236
SR30. The background colour (i.e. the colour of display immediately after clearing) is specified by entry number 0 in the colour table.
#F 69 236
SR31. Colour indices in the colour table greater than zero specify foreground colours.
#F 72 236
SR32. <Inquire colour representation> returns the colour associated with an entry in the colour table as realized on the workstation, when type of returned values specified is REALIZED. The returned colour is described by a set of colour coordinates, to be interpreted according to the current colour model of the specified workstation.
#F 69 236
SR33. A defined colour specification is realized as the nearest available on the workstation.
LOCAL DICTIONARY:
Functions --- 003: popwk <open workstation> 069: pscr <set colour representation> 072: pscmd <set colour model> 234: pqcmd <inquire colour model> 235: pqeci <inquire list of colour indices> 236: pqcr <inquire colour representation> 276: pqcmdf <inquire colour model facilities> 277: pqcf <inquire colour facilities> 278: pqpcr <inquire predefined colour representation> Data Structures --- 5 ... workstation_state_list 5.15 ... colour_entry 5.15.1 ... current_colour_model 5.15.3 ... colour_table 5.15.3.1 ... colour_index 5.15.3.2 ... colour_specification 6 ... workstation_description_table 6.17 ... colour_entry 6.17.1 ... colour_model_facilities 6.17.1.1 ... number_of_available_colour_models 6.17.1.2 ... list_of_available_colour_models 6.17.1.3 ... default_colour_model 6.17.2 ... colour_facilities 6.17.2.1 ... primary_colours 6.17.2.2 ... number_of_available_colours 6.17.2.3 ... colour_available 6.17.2.4 ... number_of_predefined_colour_indices 6.17.3 ... predefined_colour_table 6.17.3.1 ... colour_specification
You may inspect either the design or code for this program.
You may inspect either the design or code for this program.
You may inspect either the design or code for this program.
You may inspect either the design or code for this program.
You may inspect either the design or code for this program.
You may inspect either the design or code for this program.
You may inspect either the design or code for this program.
You may inspect either the design or code for this program.
You may inspect either the design or code for this program.
You may inspect either the design or code for this program.