spd - ColoursΒΆ
Colour clauses require RGB values. These can be expressed either by definitions in the standard include file rgb.h, which have the prefix RGB_, or by the actual colour value in the form 0x80bbrrgg, where bb is blue intensity, rr is red intensity and gg is green intensity.
Entering a question mark in a colour property cell opens the Choose Colour window, from where colours may be selected in several different ways.
To select one of the Basic colours, click on it and then press the OK button. Some, but not all, of these colours correspond to colours defined in rgb.h. If such a colour is chosen, the corresponding RGB definition is displayed in the property window (e.g. RGB_BLACK). Otherwise, the hex value is used.
Pressing Define custom colours opens the right half of the screen. Up to 16 custom colours can be defined. A custom colour can be a predefined Sculptor colour or a colour created by using the colour matrix.
The Sculptor Custom Colours listbox contains all the colours pre-defined in rgb.h. Select a definition and the colour is displayed. If the colour is one of the Basic colour set a line displays around it in that palette. Note that the program $SCULPTOR/demo/controls/colours.f displays all the colours included in rgb.h, in table form.
The colour matrix can be used to define a colour more precisely.
To adjust hue, move the pointer horizontally. Red, green and blue can be combined to form any colour. The corresponding numerical value is displayed in the Hue box, as a value between 0 and 239.
To adjust saturation, move the pointer vertically. Saturation is the strength or purity of the specified hue, up to a maximum of 240. The higher the value, the purer the colour. The saturation value is displayed in the box marked Sat.
To adjust luminosity, move the slider at the right of the matrix vertically. Luminosity is the relative lightness or darkness of a colour, ranging from 0 (black) to 240 (white). If saturation is set to 0, then luminosity specifies a shade of grey. Note that the luminosity slider always starts at the bottom; until it is moved upwards all colours will appear black. The corresponding numerical value is displayed in the box marked Lum.
Note that actual numeric values can be entered for hue, saturation, luminosity and colours, as an alternative to using the pointer and slider.
If the monitor display is set to 256 colours, the Colour box may display two colours. The right hand side shows how the colour will display as a solid colour - that is, which of the available 256 colours will be used. The left-hand side shows the dithered colour, which is the approximation of the specified colour using two of the available 256 colours.
Select a Custom Colour slot for the colour and press Add to Custom Colours. Custom colours can be edited - select the colour, make the changes required, and then press Add to Custom Colours.
RELATED TOPICS |