The latest version of this document can be found at www.broad.ology.org.uk/amiga/sketchblock/selectiontools.html
This set of tools allows to to create and edit a selection mask. This can be used to limit the area that other drawing operations can be applied to. The selection mask can have an alpha value allowing for smooth borders to selected areas. Selected areas can also be used to copy sections of a layer into the clipboard or a new layer.
There are currently 4 tools avaiable.
All four (and any future) selection tools settings have the selection mode buttons in common. These control the way the current selection mask is modified by the new selection created by the tool. There are 4 modes.
The Rectangle Selection tool allows you to create rectangular and square selections. To perform a selection, initialy click and drag the mouse anywhere in the sketch window of the project you are editing. Then you can drag and reposition the edges, corners, or whole selection. The mouse pointer will change to indicate the current operation. Once you are happy with the selected area, you finalise the selection by pressing the space bar. The chosen operation from the 4 modes discussed above will then be performed.
As well as the 4 common mode buttons the rectangle selection displays the coordinates and size of the currently edited area. These gadgets are currently read only.
Below these is the check box to lock aspect. If this is checked then the initial selection will be square, but once unchecked a rectangle can be made, rechecking it allows you to resize this rectangle with a constant aspect.
Next is the "Reset" button, this resets the tool (not the oeveral selection mask) so that you can initialise another selection with a click and drag action
Use this tool to create eliptical or circular selections. It operation is very similar to the rectangtle select tool. You will see the gadgets in the setttings are very similar, the width and height refer to the containing box. Currently only elipses with the axes horizontal and vertical can be created. Again press the space bar to finalise the selection.
This is the equivalent to the familar flood tool found in programs like DPaint or PPaint. However there are some differences.
Clicking anywhere in the sketch window will progressively select all the contiguous pixels in a layer that share the colour of the pixel at the point clicked
Again you will see the common 4 mode buttons, beneath these is a slider that controls the range of colour selected. The lower the value the more accurate the pixels flood selected must match in colour to the initial pixel, with 0 being an exact match. The next gadget enables soft selection. When this is selected the mask value for each pixel will depend on the accuracy of the match, with exact matches being 1.0 and no match being 0.0 this enable smooth antliased selected areas. This effect will be most noticable when working with a gradiant or radial fill.
This is very similar to the flood tool except that all pixels with the same colour as the pixel clicked on will be added to the selection. Again it has the range and soft select options.
As well as the tools available in the tools window there are a number of operations available from the menus.
STEM.ATTRS.0 3 STEM.ATTRS.1.ATTR SELECTACTION STEM.ATTRS.2.ATTR COLORRANGE STEM.ATTRS.3.ATTR SOFTSELECT STEM.SELECTACTION REPLACE | ADD | SUBTRACT | INTERSECT STEM.COLORRANGE 1 (0-100) STEM.SOFTSELECT 0 | 1The attrs substemvariable allows discovery of attributes dynamically by scripts including any that might be added after this documention was written. See Rexx/makepreset.rexx in the SketchBlock distribution drawer for an example.
The latest version of this document can be found at www.broad.ology.org.uk/amiga/sketchblock/selectiontools.html