[N-World Contents] [Book Contents] [Prev] [Next] [Index]

Tools & Brushes


You create and modify images by applying inks to the canvas through Tools and Brushes. N-Paint's built-in ToolBox contains several basic tools, which you can use to create your own custom tools.


In this Chapter

In this chapter we'll examine the tools and brushes which are part of the default toolbox. You use tools and brushes to apply inks to images in N-Paint. We'll cover


Tools & Brushes

You make changes to the canvas (or the matte) using a combination of one of the Shape tools or brushes in the toolbox and an ink. Shape tools apply ink to the canvas through a defined shape, such as an oval, a quadrangle, a text font, a line, etc. Brushes apply ink to the canvas based on cursor movement.

Each of the tools in the default toolbox is described later in this chapter, while inks are covered in Chapter 6.

To select a tool or a brush, (CLICK-L) on the tool's icon in the toolbox.

Figure 5.1 The default toolbox

To use the tool or brush, move the cursor over the canvas and use the mouse or pen in the manner described for that tool.


Using Brushes

You control how ink in applied to the canvas with a brush by changing the brushs drawing parameters. Each brush has its own individual parameters, but each shares three broad classes of parameters.

Ink

The Ink section of the Tools menu controls which ink will be applied to the canvas through the currently selected brush. To select an ink, (CLICK-L) on the field to the right of the word Ink. Each ink has its own specific parameters, so the appearance of the ink section will change depending upon which ink is selected. Inks are described in detail in Chapter 6.

Texture Options

The texture component of a brush is an additional opacity pattern through which ink is applied to the canvas. To use a texture, (CLICK-L) on the Use Texture toggle field, then select a texture image and offset.

Figure 5.2 Fields exposed by toggling Use Texture

Image

You can use a single-component (matte) image to generate a brush texture. (CLICK-L) on this field to select a single component (matte) image from among those loaded into memory. (CLICK-L) on a Texture to select it.

Brush Offset Options

(CLICK-L) on the Offset field to select from a number of brush offset options. Offset options affect the way in which the texture is applied through the brush.

Figure 5.3 The Brush Texture pop-up menu

Tiled

The selected texture image gets tiled over the canvas, independent of the position of the brush. The tiling effect is only visible if the texture matte is larger than the canvas on which it is being used, in which case, the texture pattern repeats continuously across the canvas.

Random

When using a matte to create texture, the offset of the texture image is randomly selected for every brush stamp.

Dragged

The texture image is tied to the brush as it paints. The texture effect is identical for every stamp. This effect is very visible if you use line tracking with for a brush with a high spacing value.

Make Texture

(CLICK-L) on this button to automatically create a matte texture and copy it into the STENCIL-BACKUP. (CLICK-L) on a texture to create it.

Figure 5.4 The Generate Texture pop-up menu

Figure 5.5 shows the appearance of these textures as applied through the round brush.

Figure 5.5 Texture options as they appear applied through the round brush

Drawing Options

Drawing options are controlled by the Options menu, located on just to the left of the commands section of the tools menu

Figure 5.6 Drawing Options menu

Track

Changing the brush tracking affects how the selected brush is applied to the canvas, as described below. (CLICK-L) in the Track text box to display the Tracking Mode pop-up menu:

Figure 5.7 The Tracking Mode pop-up menu

(CLICK-L) on the desired tracking mode to select it.

Point

Paints only when you hold down the mouse button or pen and move the brush. The application of paint is triggered by the movement of the brush. If you move the mouse very rapidly, you will see gaps between the brush stamps.

Continuous

Similar to point mode, except that paint is continually applied to the canvas through the brush, regardless of whether or not you move the brush. This is more noticeable when using a filter ink, or a color ink with a low opacity setting.

Stamp

Applies the brush once each time you click the mouse. You must release the mouse or let up on the pen and click again every time you want to draw.

Smooth

Similar to point mode, except that the brush does not skip if you move the mouse or pen quickly. (However, for large brushes, the brush may not follow the mouse in real time.)

Line

Paints along a path you specify with a pair of endpoints. To paint in line mode:

1. (CLICK-L) to define the starting point.

2. Move the mouse and (CLICK-L) again to define the endpoint.

The line is drawn between the two points.

Space

Available only with Long menus

When a brush is using Line tracking mode, the Space parameter determines how often the brush is stamped along the specified line.

Figure 5.8 Spacing parameters

Rubberband

Draws from point to point, applying the brush to each segment as it is defined.

1. (CLICK-L) to start the line.

2. Move the brush and (CLICK-L) again to draw a segment.

The brush is applied to that segment; the brush is still in rubberband mode.

3. (CLICK-L) again to draw another segment.

The brush is applied again, for each segment you define.

4. (CLICK-M) when you're finished with the path.

Spline

Similar to Rubberband mode, in that you specify a series of segments. When you end the path, the brush is applied along a spline path defined by those segments.

1. (CLICK-L) to start the line.

2. Move the brush and (CLICK-L) again to draw a segment.

Continue the move and (CLICK-L) process until you've drawn the path.

3. (CLICK-M) when you're finished with the path.

The brush moves along the defined path.

Channels

Available only with Long menus

This parameter controls which elements of the image will be affected by the operation. When you (CLICK-L) on Channels, the Components pop-up menu appears.

Figure 5.9 The Components pop-up menu

This controls what color components of the canvas are affected by the ink.

The options in the left column assume an RGB color model; the column on the right assume an IHS model.

(CLICK-L) on an image component to select it. For example, if you select Red, then the paint operation will only affect the red component of the image. RGB is the default selection.

SubPixel

If selected, the brush draws with a smoother (anti-aliased) line. This is normally necessary only when using very small brushes where softness and opacity components are less significant.

N-Paint performance may be affected if you select Subpixel mode-the interactive anti-aliasing for brushes is very calculation intensive.

Pressure

Controls the brush opacity with the pressure of the pen on the tablet. If pressure is selected, the harder you press, the more opaque will be the effect of the brush. This feature is not used with the mouse.

Shadow

Drop shadows can be drawn behind brush operations. To draw a shadow, make sure that Shadow is checked, then (CLICK-L) on Set to define the shadow parameters.

Note: The shadow toggle is located in the Drawing Options section of the menu, just to the left of the commands section.

Figure 5.10 Shadow parameters

Figure 5.11 Left, shadow; middle, extruded; right, PatExtruded

Angle

Specifies the orientation of the shadow (the direction from which the "light" is coming).

Shadow

The middle column of parameters specify the characteristics for the shadow option:

Highlight

All the parameters for the highlight are identical to that for the shadow, except that they apply to the highlight portion of the effect.

Note. If you define a shadow for a shape that uses filter or other non-coloring inks, the shadow is still applied. If, for example, you sharpened an image by applying a Sharpen filter ink through a rectangle, but forgot to turn off the shadow effect, the shadow would be drawn around the area you sharpened.

Paths

Available with Long Menus only

Paths lets you save the path of a brush's movement across the screen. This is useful if you want to use two different brushes or two different inks along the exact same path in N-Paint.

You could, for example, paint along a path with the round brush using a simple color ink, then move a filter brush along the same path to blur that line.

When you (CLICK-L) on the Paths button, the Brush Path Operations pop-up menu appears:

Figure 5.12 The Brush Path Operations pop-up menu

Show Paths

Available only with Long menus

This group of controls allows you to display wire frame outlines of previously drawn brush paths on the canvas.

Figure 5.13 Show Brush Paths

Accumulate

Available only with Long menus

Controls whether an image processing effect (e.g., the filter ink) affects the current canvas or the copy saved in the image processing buffer.

When Accumulate is off, a saved version of the canvas is used as a source, so that no matter how much you paint, the canvas is affected only once. With Accumulate off, you can use the SaveBuf command to process the image more than once.

When Accumulate is on, the canvas is changed more and more the longer you paint, because the brush is affecting the modified canvas rather than the copy in the image processing buffer.

LoadBuf

available only when Accumulate is OFF

Loads the version of the image currently saved in the image processing buffer to the canvas. If you apply an image processing effect to part (or all) of an image, use LoadBuf to retrieve the version last saved to the image processing buffer (either the original image, or the last version saved with SaveBuf described below). This is available only if Accumulate is off.

See the section "Managing Images in N-Paint," on page 1-12 for more about the image processing buffer.

SaveBuf

available only when Accumulate is off

Saves the current version of the image to the image processing buffer. This saved version can be retrieved with the LoadBuf command after an unwanted image processing function (such as a filter or recolor operation) has been applied to a canvas. This is available only if Accumulate is off.

See the section "Managing Images in N-Paint," on page 1-12 for more about the image processing buffer.


Brushes for Editing Images

N-Paint includes two types of brush. By modifying the parameters of these brushes and combining them with different inks, you can create a wide variety of custom brushes. You can save these custom brushes for future use. This section describes the basic parameters for the Cutout brush and the Round brush.

Cutout Brush

Figure 5.14 Cutout brush icon

The cutout brush lets you create custom brushes, selecting the pattern directly from a region of the canvas.

Figure 5.15 Cutout brush parameters

Create Cutout

Use this button to specify the method by which you want to define the cutout. (CLICK-L) on Create Cutout and the Create Cutout pop-up menu appears:

Figure 5.16 Create Cutout pop-up menu

Edit Cutout

Lets you change the shape of the cutout brush. The main Tools menu is replaced with the Cutout Edit menu:

Figure 5.17 The Edit Cutout menu

Figure 5.18 Setting the offset for the cutout brush

(CLICK-L) on either the X or Yvalue to change the position of the shape on the pasteup layer (using the numerical keypad which appears).

If the shape on the pasteup layer is non-rectangular, the X and Y values determine the position of the object using the upper left corner of a virtual "bounding box" around the shape:

Figure 5.19 Bounding box

Mode options allow you to specify what you want to do to the cutout shape. Note that changing the shape of the brush distorts the contents of the brush as well.

Opacity sets the opacity for the cutout brush.

Detail determines the amount of anti-aliasing employed when showing the distorted image in a brush whose shape you change. A higher factor produces a lower quality (but faster) preview.

Cutout Operations

Operations allow you to modify the cutout brush. (CLICK-L) on Operations to reveal the Brush Operations pop-up menu.

Figure 5.20 Cutout Brush Operations

Figure 5.21 Inverting a cutout

Opacity

Specifies the opacity of the brush when it is applied to the canvas.

Preview

Specifies the opacity of the brush as it is positioned over the canvas. Specify a lower opacity to see the canvas under the brush.

Round Brush

Figure 5.22 Round brush icon

Use the Round brush to draw with a round shape on the canvas. The Round Brush has three parameters, Size, Opacity, and Hard(ness).

Size

Size determines the radius of the brush in pixels.

Opacity

Opacity determines the percentage of pixels under the brush onto which the current ink is applied. The higher the number, the more pixels are affected. (Remember, a brush may apply either a color or an effect.)

Hardness

Hardness is the "smoothness" of the brush's edge, expressed as a percentage. A higher value gives the edge of the brush a "sharper" feel, while a lower value causes the edges to feel "soft." With hardness set to 100%, there is no soft-edging.


Using Shape Tools

There are two types of shape tool:

Most of the Editing tools share three basic parameters, Ink, Texture, and Drawing Options.

Ink

Ink parameters are set in exactly the same way for tools as for brushes.

Texture

The texture determines the "transparency" of the ink applied to the canvas. When you apply ink to an image using a shape, the ink that you select is applied to an image through a matte. It may be helpful to think of the ink texture as another layer, over the image, through which ink is applied:

Figure 5.23 The concept of an ink opacity map

To select an ink texture, (CLICK-L) in the Texture edit box:

Figure 5.24 Ink textures

Each of these mattes is described below.

Opaque

This is the default ink texture. If selected, the ink is opaque; it has 100% effect on any pixels to which it is applied. If you select a color ink, for example, the color is applied to the canvas at full strength. If you select a filter or recolor ink, the filter or recolor process is applied at full strength to the canvas.

Constant

Specifies a single opacity constant, from 0% to 100%.

Figure 5.25 Constant ink texture parameters

The constant value specified affects the opacity of the matte; if you specified a value of .50 for the matte, for example, the specified ink would have only a 50% affect on the image.

Gradient

Specifies a gradation in the opacity of the ink. As with gradient inks, the opacity gradation may be vertical, horizontal, radial, or angular:

Figure 5.26 Gradient ink texture parameters

Refer to the section "Multi Grad," on page 6-5 for a description of the gradient patterns.

Edge key

Figure 5.27 Edge Finder ink texture parameters

If selected, applies ink only through selected areas of the canvas, determined by the results of an edge detect filter operation.

By default, ink is applied to the non-edge portions of the image; Invert causes ink to be applied only along the edges of an image.

Grain

The opacity of the ink is applied through a grainy texture.

Figure 5.28 Grain texture parameters

Grid

The ink opacity is applied through a grid-shaped matte. The characteristics of the matte are specified in the pop-up dialog box.

Figure 5.29 Grid ink texture parameters

Drawing Options

Drawing options allow you to enhance the effect of your shape operations by adding effects such as shadows, or controlling how colors are mixed in your images.

Shadow

Shadow parameters are the same for tools as for brushes. To review how to use Shadow effects, see "Shadow," on page 5-9.

Mixing

Available only with Long menus

The Mix Mode controls how colors applied to the canvas are "mixed" with colors which are already on the canvas. (CLICK-L) on the Mixing edit field to reveal the Mix Mode pop-up menu.

Figure 5.30 The Mix Mode pop-up menu

Channels

Available only with Long menus

Channels work in exactly the same way for shape tools as for brushes. To review how Channels affect tool performance, see "Channels," on page 5-7.

Clear

(CLICK-L) on the clear button to restore tool drawing options to their default values.

Shape Tool Commands

In addition to the parameters we just described, Shape tools have several commands you can use to review, edit, and repeat shapes you've defined on the canvas. When you select and edit shapes, you're only manipulating the shape itself, not any paint that's been applied to the canvas through that shape. For example, if you use a certain polygonal shape to composite an image onto the canvas, and then edit that shape, the composited image will be unaffected. Only the shape you used to define it will be changed.

Shape Edit commands appear at the bottom of the each tool's parameter menu:

Figure 5.31 Shape Edit commands

Using Repeat vs. Undo

You can combine the Undo and Repeat commands to "tweak" a particular shape until it's just the way you want it. Say, for example, that you defined a shape for compositing an image. After you do the operation, you may decide that you really wanted to use a Scale Image ink instead of a Reveal Image ink. You can easily accomodate this change using the Undo and Repeat keys together:

1. (CLICK-L) on the Undo key in the Commands section of the menu.

2. Select the Reveal Image ink.

3. (CLICK-L) on the arrow to the left of the Show button, in the Tool Parameters section of the menu.

(CLICK-L) on the arrow until the shape you want to edit is highlighted on the canvas.

4. (CLICK-L) on the Repeat button in the Tools Parameters section of the menu.

N-Paint applies the current ink (the Reveal Image ink , in this case) to the image through the highlighted shape.

You can edit almost any aspect of a shape, including its position, size, and shape.

Shapes vs. Custom Tools

It's important to understand the differences between a custom tool and a shape that you can edit.

Abort

If you begin to draw a shape, then decide you want to start it somewhere else, (Click-L) on the Abort button or (Click-M) to restart the shape.

Show

Lets you cycle through the shapes that you have used to draw on the canvas. A history of all specified shapes is preserved:

Figure 5.32 Displaying other shapes

Repeat

Redraws the last shape using the current menu parameter settings. This can be very useful in performing the different operations on the same area. For example, what if you draw a shape, but decide you don't like the color. Just (CLICK-L) on Undo, select another color, then (CLICK-L) on Repeat.

Edit

Lets you edit the last shape of the currently selected type. If you select Edit when working with one of the shape tools, the shape edit menu is displayed:

Figure 5.33 The Shape Edit menu

Figure 5.34 Setting the position of a shape numerically

(CLICK-L) on either the X or Y value to change the position of the shape on the pasteup layer (using the numerical keypad which appears).

If the shape on the pasteup layer is non-rectangular, the X and Y values determine the position of the object using the upper left corner of the bounding box around the shape:

Figure 5.35 Bounding box

Mode

The mode commands let you specify which

Figure 5.36 Shape editing modes

Note. Whenever entering a shape edit mode (e.g., editing a polygon or text), you can hold down the SHIFT key to temporarily change to Position mode; let up on SHIFT to return to the previously selected mode.

Draw

Figure 5.37 Selecting which portion of the shape to draw


Shape Tools For Editing Images

N-Paint includes six tools you can use to draw on the canvas, the Quad tool, Polygon tool, Line tool, Oval tool, Text tool, and Fill tool.

Quad Tool

Figure 5.38 Quad tool icon

Use the Quad tool to apply inks to rectangular regions of the canvas. To abort specifying a rectangle and reset the tool, (CLICK-L) on Abort, or (SHIFT-L), or (TABLET-ABORT).

Figure 5.39 Rectangle parameters

Rect

Specify a rectangle of any size by drawing it on the canvas.

Size

Lets you specify a rectangle using numeric values for the width and height.

Ratio

Specify a ratio of width to height for any rectangle you draw. This is useful for drawing squares (set both to 1), or for drawing quadrangles of a specific aspect ratio.

Figure 5.40 Rectangle ratio

Quad

Specify an arbitrary quadrilateral (four-sided object). When creating a quadrilateral, you (CLICK-L) to define each of the first three points in the shape; the third point is joined with the starting point to complete the shape.

Polygon Tool

Figure 5.41 Polygon tool icon

The polygon tool allows you to specify areas on the canvas which are not shaped like regular polyhedrons. To use the tool, you (CLICK-L) on successive points to form the perimeter of the polygon.

Figure 5.42 Polygon parameters

Sketch

Determines how you draw the polygon on the canvas.

Figure 5.43 Left, sketch mode selected; right, not selected

To abort the drawing of the shape, (CLICK-L) on Abort or (SHIFT-L) or (TABLET-ABORT).

Spline

If selected, the points on the perimeter of the polygon are joined using Kochanek splined (curved) lines.

Figure 5.44 Left, spline mode selected; right, not selected

Outline

Draw only the outline of the polygon on the canvas.

Figure 5.45 Left, outline mode selected; right, not selected

Width

Specifies the width of the polygon's outline, measured in pixels. This parameter appears only when the polygon is being drawn in outline mode.

Soft

Measures the softness of the polygon's edges, measured in pixels.

Line Tool

This tool allows you to specify and apply operations to the canvas through any line shape.

Figure 5.46 Line tool icon

Figure 5.47 Line parameters

Separate

If selected, lines are drawn as individual segments; you specify a start and end point, and then the operation is applied. To abort the drawing of the line, (CLICK-L) on Abort or (SHIFT-L) or (TABLET-ABORT).

Figure 5.48 Separate lines can be only one segment long

Connected

Lets you draw any number of connected points for a line; the operation is applied to the canvas after you have specified the last shape. To close the shape, (CLICK-L) on Do It or (CLICK-M) or (TABLET-EXIT). To abort the drawing of the shape, (CLICK-L) on Abort or (SHIFT-L) or (TABLET-ABORT).

Figure 5.49 Connected mode lets you draw a series of connected lines

Sketch

Sketch mode allows you to draw a path freehand on the canvas without clicking at each point.

Spline

If selected, the line is drawn between the specified points using a spline interpolation.

Figure 5.50 Splined connected line

Width

The thickness of the line, measured in pixels.

Soft

The softness of the line, measured in pixels.

Oval Tool

Figure 5.51 Oval tool icon

This tool allows you to specify and apply operations through any oval shape. To abort out of specifying an oval and reset the tool, (CLICK-L) on Abort, or (TABLET-ABORT).

Figure 5.52 Oval parameters

Circle?

If selected, constrains the oval tool to drawing circles. If not constrained, draws an oval (ellipse).

Outline

Draws only the outline of the oval.

Softness

The softness of the oval, measured in pixels.

Width

The thickness of the oval, measured in pixels.

Text Tool

This tool allows you to specify and apply operations through any text shape.

Figure 5.53 The Text Tool icon

If you (CLICK-L) on the text tool, the following menu appears:

Figure 5.54 Text parameters

Text

Type in the text you want to apply to the canvas here.

Font

Specify the font to be used. A default font is displayed when you start up N-Paint. If you (CLICK-L) in the Font field, the following menu is displayed:

Figure 5.55 Selecting a font

At the bottom of the menu is a list of the fonts currently loaded into memory. The first two options allow you to load fonts using different methods.

Figure 5.56 Fonts in the default fonts directory not yet loaded into memory

If more fonts are available than can be displayed on one screen, use the paging controls at the bottom of the menu to view a list of more fonts.

Figure 5.57 Browsing font icons

If Confirm Enabled is selected in the Setup menu, you are prompted to verify that you want to load the icons; the time necessary to load the icons depends on the number of fonts installed in your default font directory).

If a font has not yet been loaded into memory, the words "not loaded" appear over the sample letter.

To use one of the displayed fonts, (CLICK-L) on its icon. If it has not been loaded to memory, (CLICK-L) on Yes when prompted whether or not to load the font from file.

Size

The height of the font, in pixels.

Rot

The angle (rotation), in degrees, by which to rotate the text.

Skew

The degree by which to italicize the text. Negative values produce a backward slant; positive values a forward slant. A value of 0.0 does not skew the text at all.

Although you can specify any value for skew, typical values are approximately between -2 and 2.

Space

Specifies the amount of space between individual letters, in pixels.

XScl

Specifies the horizontal scaling of the text. Changing the X scale of a font affects it as described in Table 5.1:

Table 5.1 Effects of X scale on fonts
Value Font Reads Description
0 to 1

Left to right

Font is compressed by the specified factor.

1 or higher

Left to right

Font is stretched by the specified factor.

-1 to 0

Right to left (mirror image)

Font is compressed by the specified factor.

-1 or lower

Right to left (mirror image)

Font is compressed by the specified factor.

Outline

Specifies that the text is to be drawn as outline characters. If turned on, characters are drawn as outlines.

Width

The thickness of the letter's outline, measured in pixels.

Soft

The softness of the letter's outline, measured in pixels.

Figure 5.58 shows the various text effects:

Figure 5.58 Font effects

Curve

Lets you create and modify a curve (actually a Kochanek spline) along which to apply text. See the section "Text Edit Mode," on page 5-37 for a description of editing text and the curves they sit on.

Compositing Text onto an Image

After you have specified the effects you want to use when applying text, move the cursor over the image. An outline of the text appears over the image showing the currently specified parameters.

(CLICK-L) on the image to apply the text to the image as displayed. This combines the text directly onto the canvas.

If you want to further edit the text before applying it to the canvas, follow the instructions in the section below to enter text edit mode, which allows you to interactively change the characteristics of the shapes and position of the letters being applied.

Text Edit Mode

As mentioned in the previous section, you move the cursor over the canvas to see an outline preview of what text would look like if applied.

If you decide that you want to make some modifications to the text before applying it to the canvas, you can enter text edit mode and change a number of characteristics.

To enter text edit mode:

1. Enter the text you want to add in the Text box.

2. (CLICK-L) on the Edit button.

Suppose you entered the letters "Xyz" in the Text box. When you entered text edit mode, an outline looking something like that in Figure 5.59 would be displayed:

Figure 5.59 Text with control points

3. Note that the text edit menu also appears across the bottom of the screen.

Figure 5.60 Text edit menu

You use the commands in the text edit menu to specify how you want to manipulate the individual letters or the entire bounding box, as described below:

Abort

Aborts from text edit mode without saving any changes.

Exit

Exits from text edit mode and saves any changes you have made since entering this mode.

Composite

Applies the text to the canvas at the currently selected position. (This saves you the step of exiting from text edit mode and reapplying the text to the canvas.)

Reset

Undoes any changes to the text that have been made since you entered text edit mode.

SetOffset

Move the shape on the canvas.

Mode

The various modes determine let you specify what you want to do with a selected control point.

Figure 5.61 Text edit menu (modes)

Note. Hold down the SHIFT key to temporarily change to Position mode. If, for example, you are rotating a letter and want to move it, (SHIFT-L) and drag the character control point to move the letter, then let up on SHIFT to return to Rotate mode.

Draw

The Draw options determine how characters are displayed in the text edit mode.

Figure 5.62 Text edit menu (draw options)

Undoing Changes

If you decide that you don't like the changes you have made in text edit mode, (CLICK-L) on the Text Ops box. The following menu appears:

Figure 5.63 Text operations

Placing Text along a Curve

If you want to place the text you have specified in the Text box along a curve:

1. (CLICK-L) on TextOps>Define Curve.

The following menu appears:

Figure 5.64 Setting up the curve for text placement

In Edit mode, a drawn curve with three characters on it might look something like this:

Figure 5.65 Text along a spline curve

To modify the curve, first go into Edit mode:

Where are Fonts Located?

The default font directory is:

/usr/local/ngc/fonts/bitstream/

Individual fonts are stored in this directory. At the moment there is no provision to specify any other directory as the default.

If you want to physically store the fonts in another location, you must create a link between the two directories. Suppose, for example, that you want to keep your fonts in a directory called /usr/fonts. From a UNIX shell on the machine on which you are running N-Paint, you must create a symbolic link:

ln -s /usr/fonts /usr/local/ngc/fonts/bitstream

The basic syntax is:

ln -s actual_directory expected_directory

How are Fonts Stored?

If you ever look in the fonts directory from a UNIX shell, you will see files with two different extensions:

Table 5.2 Contents of font directory
Extension Description
.bsfont

The scalable font.

.icon

The icon displayed in Browse mode.

For each font, there will be two files:

fontname.bsfont

fontname.icon

Fill Tool

Figure 5.66 Fill tool icon

This tool allows you to specify and apply operations through any region defined by area filling. The area to be filled is specified by clicking on a "seed" point on the canvas. The seed color and any parameters you have specified are then used to compute the extent of the area to be filled.

If you hold the CTRL key down when moving the fill tool over the canvas, the hue of the color under the tool is displayed in full saturation and brightness in the center of the tools color box. This is useful when the selected color is too dark or desaturated to see well.

Note. You may specify any ink to be applied through the fill tool. This means that any of the operations you might apply as an ink through either a brush or a polygon may also be applied to an irregular area through the fill tool.

Draw

The draw mode determines how the extent of the area to be filled is calculated.

Figure 5.67 Fill parameters in While mode

Note. The fill tool in color mode can be used to create mattes based on picture color. Put the matte in Add mode and use the fill tool in While mode. Use an appropriate Test and Range, then (CLICK-L) on the colors for which you want to create the matte. The newly filled area is added to the matte every time you (CLICK-L) with the tool. This is similar to generating a matte using a chroma key, as described in the section "Chroma Key," on page 6-24.

Figure 5.68 Fill parameters in Until mode

Note. When Draw is set to Until, and Range is 0, it is important that the boundary region be of a single color. If not, the fill will leak through the boundary. If you draw a boundary with an airbrush, you will get a wide variation in color since the airbrush has soft edges and will blend with the background to various degrees and the fill will leak through. Therefore, you should paint your boundaries slowly with a fairly-hard edged round brush of 100% opacity.

Test

Specifies the type of test to perform to match pixels.

Border

Specifies the boundary pixel color to use when Draw is set to Until. (CLICK-L) on the color field to select a color.

Range

A value from 0 to 1.0, used to specify how close a pixel's color must be in order to meet the conditions specified in Test. So, for example, if you selected a seed color with RGB values of .75, .22, and .65, and a range of .02, colors in the range .73-.77, .20-.24, and .63-.67 would be affected by the fill operation.

Soft

Specifies an additional range of values that are affected by the fill, making a fill smoother around the edges when being applied to a continuous tone image. (Specify a range between 0.0 and 1.0, with a higher value producing a softer edge.)


Shape Tool Utilities

The Pasteup, Color Picker, and Pan/Zoom tools are used to move the image around on the canvas, to pick colors from specific parts of the canvas, and to create composite images.

Pasteup Tool

Figure 5.69 Pasteup tool icon

The Pasteup tool lets you use the layering capabilities of N-Paint to do both compositing and shape manipulation. When you select the Pasteup tool, you go directly into pasteup mode. There, you may edit any shape you draw just as you did in the shape editor, described in "Shape Tool Commands," on page 5-21. In pasteup mode, there are two layers; a foreground layer (also called the "pasteup layer") and a background layer (typically the canvas).

Think of the foreground layer as an overlay for the current canvas. The objects you manipulate may then be applied directly to the canvas.

Figure 5.70 Working in pasteup mode

When you select the pasteup tool, the following menu is displayed:

Figure 5.71 Pasteup mode parameters

Operation

Figure 5.72 Bounding box

Tool Mode

Background/Foreground Layer Display

Figure 5.73 Control of the foreground display

Compositing in Pasteup Mode

One of the most useful features of the pasteup layer is its ability to display two images at the same time, which makes using tools such as the reveal brush easy and intuitive.

Try the steps below to get used to the tools in N-Paint:

1. Load the Canvas.

Choose an image from either disk or memory.

2. (CLICK-L) on the pasteup tool in the toolbox.

The parameters menu shown in Figure 5.71 appears.

Note. The Pasteup button in the commands section of the menu toggles the visibility of the foreground (pasteup) layer.

3. (CLICK-L) on Load Foreground.

4. Select an image from memory from the list box that appears.

The image in the foreground is displayed.

5. Move the pointer over the canvas. (CLICK-L) and drag the foreground layer.

Because the foreground image is loaded into a shape, it can be moved, rotated, scaled, or stretched using any of the tools you use to manipulate other shapes.

6. Slide the Opacity slider left or right to control the opacity of the foreground layer.

7. (CLICK-L) on Use Matte.

If there is a matte associated with the image loaded into the foreground, only the portion of the image that has a matte is displayed.

8. (CLICK-L) on either Foreground or Background.

This chooses which layer you want to draw on.

The primary advantage of being able to overlay one image with another is that you can paint onto a background image and see how it lines up with a second image (loaded into the foreground, for example). The section below shows a typical application of this compositing capability.

The Color Picker Tool

Figure 5.74 The Color Picker tool icon

You can use the color picker to pick a color from the canvas. The color you pick becomes the active color. You can also use the color picker to capture all the colors in the current image and add them to the pallette.

To use the color picker tool, (CLICK-L) on its icon. The Color Picker menu appears:

Figure 5.75 Color Picker tool menu

Using the mouse, move the color picker tool over the area of the canvas with the color you want to capture.

Figure 5.76 The Color Picker cursor

The selection point captures the color of a single pixel. This color is displayed in the larger selection box, which is connected to the selection point by a thin line. When you see the color you want in the box, (CLICK-L) on the canvas. That color becomes the current color until you change it.

Adding a Captured Color to the Palette

Once you've capture a color, you can save it to the current palette so that you can use it again later.

1. (CLICK-L) on the Palette Scroll bar to find an empty palette slot.

Figure 5.77 Palette with empty slots

2. Move the cursor over an empty slot, and (CLICK-L).

The current color (which is the color you just picked) is added to the palette.

Capturing all the Colors in an Image

You can also select all the colors from a portion of an image. To do so:

1. (CLICK-L) on the Get Canvas Colors button under the palette.

N-Paint prompts you to select a rectangular area on the canvas.

2. Using the mouse, define a rectangular area on the canvas.

(CLICK-L) on opposite corners to define the rectangle.

The colors in the area of the image you define are added to the palette.

The Pan/Zoom Tool

Figure 5.78 The pan/zoom tool icon

You use the Pan/Zoom tool to move the image around on the canvas, or to zoom in or out from the image. The Pan/Zoom menu appears when you (CLICK-L) on the Pan/Zoom tool icon:

Figure 5.79 The Pan/Zoom tool menu

Use the green buttons to zoom in and out from the image.

Figure 5.80 Soft zoom dialog box

Panning

You can move the image around on the canvas without zooming. Lateral movement of the image is called panning. To pan the image:

1. (CLICK-L) on the Pan/Zoom tool icon.

2. (DRAG-L) the image in the direction you want to move it.

Say you have a piece of paper on your desktop. You can move it by putting your finger on a certain spot, then moving your finger around, dragging the paper across your desktop. The Pan tool works in exactly the same way.


Creating Custom Tools

If you find yourself using a particular tool with the same settings over and over, N-Paint gives you the ability to save that tool (with the settings) in a custom toolbox. For example, you may create a cutout brush that you want to save to use as a decal.

To view the contents of the currently loaded custom toolbox, (CLICK-L) on the arrow next to the Tool Box label.

Figure 5.81 Custom tools

The custom toolbox is divided into a grid, just like the default toolbox; each square on the grid represents a space in which a tool can be stored. You may have more than one page in a custom toolbox.

Adding and Removing Tools

When you add a tool to the custom toolbox N-Paint asks you to name your new brush. This name appears across the top of the custom tool in the toolbox.

Saving Custom Tools

You can save, copy, and load custom toolboxes just like other N-Paint elements. Just (CLICK-L) on the tool-box edit field to reveal a menu of toolbox operations. To learn more about these operations, see "Working with Palettes and Toolboxes," on page 4-8.



[N-World Contents] [Book Contents] [Prev] [Next] [Index]

Another fine product from Nichimen documentation!

Copyright © 1996, Nichimen Graphics Corporation. All rights reserved.