6.2.15.2. USING THE COLOR/SHADING WORKBENCH

next, previous Section / Table of Contents / Index The color/shading workbench is available from different option menus (option [W] in submenus V, G, PP, option [K] in submenu P) and allows you to change all basic and paint colors as well as ball shading angles in a very intuitive way using the mouse or a graphics pointer. Selecting this option switches to graphics mode (DOS) or opens a graphics window (Unix) which contains various rectangular areas (color fields) and a circular area (shading field) showing the present color/shading settings. The settings can be modified by moving the graphics pointer inside the respective area followed by L-click or [enter] (this will be called "selecting" in the following) as described below. The workbench is closed by R-click or [,] after which BALSAC returns to the menu from which the workbench was opened. The workbench shows the main color field (M) in its upper right part as ... -------------------------------------+ | _______________________ | | | | | | Base | |_____|_____|_____|_____| | | | (M) | | Paint | |_______|_______|_______| | | | | | | | | Palette | |___|___|___|___|___|___| | | | . where the field is subdivided into three rows of color boxes, the BASE COLOR ROW indicated by "Base" showing four boxes filled with the base colors defining "black", "white", "stereo red", and "stereo blue" (DOS/VGA version) or eight boxes filled with the base colors defining "black", "white", "background", "text", "bonds", "stereo red", "stereo blue", "stereo white" (Unix/X.11 version), the PAINT COLOR ROW indicated by "Paint" showing ncolb boxes filled with the paint colors defined at present, and the PALETTE ROW indicated by "Palette" showing nptot boxes filled with paint colors in the present palette sequence. Further, a black/white rectangle inside one of the base or paint color boxes denotes the "active" color which can be modified as described below. (When the workbench is opened the first paint color will be used as active color.) Selecting any base or paint color box (moving the graphics pointer inside and L-click) in the main color field makes the respective color active. Selecting a palette box with an active paint color assigns the active color to the respective palette position changing the color of the palette box accordingly. With an active base color no palette box can be selected. WITH AN ACTIVE BASE COLOR the left part of the workbench shows the color selection field (CS) as +--------------------------------------------------------------------------+ | COLOR/SHADING WORKBENCH | | _______________________ | | | | | | | | | _______________________ | | |___|___|___|___|___|___| | | | | | Base | | | | | | | | | |_____|_____|_____|_____| | | |___|___|___|___|___|___| | | (M) | | Paint | | | | | | | | | |_______|_______|_______| | | |___|___|___|___|___|___| | | | | | | | Palette | | | | | | | | | |___|___|___|___|___|___| | . . . . . . (CS) . . . . . . | | | | | | | | | | |___|___|___|___|___|___| | | | | | | | | | | | |___|___|___|___|___|___| | | | | | | | | | |___|___|___|___________| | | | | | |L-click: base/paint color, palette, RGB, range, ball shading; R-click: esc| +--------------------------------------------------------------------------+ where the field is subdivided into color boxes showing all nctot colors defined at present. Selecting any color box (moving the graphics pointer inside and L-click) in the color selection field assigns this color to the presently active base color. This is confirmed by a smaller rectangle inside the respective base color box and filled with the new color. WITH AN ACTIVE PAINT COLOR the left part of the workbench gives an extended description of this color by the RGB selection field (RGB), the color range selection field (CR), and the (circular) shading selection field (SH) as +--------------------------------------------------------------------------+ | COLOR/SHADING WORKBENCH | | _______________________ | | | | | Red = nr _______________________ | | |__________|____________| | | | | | Base | | | (RGB) | | Green= ng |_____|_____|_____|_____| | | |______________|________| | | (M) | | Paint | | | | | Blue = nb |_______|_______|_______| | | |______|________________| | | | | | | | Palette | | |___|___|___|___|___|___| | | _______________________ | | | | | Qbot= qbot | | |___|___________________| _________________ | | | | (CR) | Qbas= qbas / \ | | |_______|_______________| / o \ | | | | | Qenh= qenh / _______ \ | | |____________|__________| / /:::::::\ \ | | | | | Qtop= qtop | /:::::::::\ | | | |__________________|____| | |::::::::::.| | | | | | | Qgam= qgam | |:::(SH)::..| | | | |_______________|_______| | |::::::::...| | | | | \:::::..../ | | | _______________________ \ \_______/ / | | | | | | | | | | | Tones= nsh \ / | | |__|__|__|__|__|__|__|__| \ / | | | | | Dark/Light Glossy \_________________/ | | |___________|___________| | | | |L-click: base/paint color, palette, RGB, range, ball shading; R-click: esc| +--------------------------------------------------------------------------+ > (RGB) The RGB selection field (RGB) gives the basic RGB definition (nr, ng, nb) of the active paint color by three boxes (RGB boxes) indicated by "Red= nr", "Green= ng", "Blue= nb", see Sec. 5.4. The boxes are partly filled (from left to right) with white color where complete filling corresponds to the global RGB maximum value rgbmax (defaults are rgbmax = 63 for DOS/VGA, = 65535 for Unix/X.11) assigned to the RGB component, nr, ng, or nb, while no filling denotes a value of zero with a linear variation in between. Further, the text to the right of each box gives the explicit numerical value of (nr, ng, nb). Selecting a point inside an RGB box redefines the respective RGB component of the active paint color using the lateral position of the selected point with respect to the left and right side of the box. This is confirmed (after a little while) by an updated white area in the RGB box and all fields containing the active color are repainted with the new color. > (CR) The color range selection field gives the complete definition of all tones of the active paint color by five boxes (color range boxes). Each box contains a vertical (color, white) line which shows the numerical value of the respective factor varying linearly between 0 (left) and 1 (right) for the top four boxes and logarithmically between 0.05 (left) and 5.00 (right) for the fifth box. The first and forth boxes from the top (labelled "Qbot= qbot", "Qtop= qtop") describe factors qbot and qtop determining the darkest and lightest tones of a paint color used for continuous ball shading. Here the first box is partly filled (to the left) with the darkest tone while the fourth box is partly filled (to the right) with the lightest tone of the active paint color. Further, the complete set of nsh tones of the active paint color is shown in the display box labelled "Tones= nsh" below. The second and third boxes (labelled "Qbas= qbas", "Qenh= qenh") refer to the default dark and light tones of a paint color determined by qbas and qenh and used for hard ball shading. Here the vertical line inside the second (third) box is drawn with the default dark (light) tone of the active paint color. Further, both tones are shown in the display box labelled "Dark/Light" below. The fifth box (labelled "Qgam= qgam") quantifies the gamma factor determining the distribution of color tones between darkest and lightest tone used for continuous shading. Here the actual numerical value within [0.05, 5.00] varies on a logarithmic scale. All color definitions are discussed in detail in Sec. 5.4. Selecting a point inside any of the five color range boxes redefines the respective value (qbot, qbas, qenh, qtop, or qgam) of the active paint color using the lateral position of the selected point with respect to the left and right side of the box. This is confirmed (after a little while) by an updated white line (and painting) in the respective box and all fields containing the active color are repainted with the new set of color tones. Note that modifications of the range factors qbot, qbas, qenh, qtop are not completely independent. If a modification violates the order relation qbot < qbas < qenh < qtop BALSAC will reset the values accordingly. > (SH) The (circular) shading selection field shows a glossy-shaded ball labelled by "Glossy" to the lower left which illustrates continuous shading using the active paint color. The ball is surrounded by a larger white circle and an "o" inside the circle area quantifies the incident light direction used for shading. Here the position (x,y) of the "o" with respect to the ball/circle center is given by x = Rc * sin(theta) * sin(phi) y = Rc * sin(theta) * cos(phi) with Rc being the radius of the outer circle and theta, phi denoting the shading angles. Selecting a point inside the outer circle evaluates the shading angles theta, phi according to the selected point and redraws the shaded ball with the "o" at its new position. Selecting a point inside the label field "Glossy" changes the ball design following the sequence given in the design option, see Sec. 6.2.7, and labelled by "Filled", "Stereo", "Hard", "Fuzzy", "Dither", "Glossy", "Filled", ... which allows you to inspect color changes with the different ball designs. Note that shading angles cannot be changed with design options "Filled", "Stereo". When the color/shading workbench is closed by R-click or [,] all color and shading parameters (which may have been modified with the workbench) are kept at their latest values and used in subsequent plots of lattice sections and clusters. next, previous Section / Table of Contents / Index