6. Gradients

图 7.22. Some examples of GIMP gradients.

Some examples of GIMP gradients.

Gradients from top to bottom: FG to BG (RGB); Full Saturation Spectrum CCW; Nauseating Headache; Browns; Four Bars


A gradient is a set of colors arranged in a linear order. The most basic use of gradients is by the Gradient tool, sometimes known as gradient fill tool: it works by filling the selection with colors from a gradient. You have many options to choose from for controlling the way the gradient colors are arranged within the selection. There are also other important ways to use gradients, including:

用渐变绘画

GIMP的每个基本绘画工具都允许您选择使用渐变颜色。这使您能够创建从一端到另一端改变颜色的笔触。

渐变映射滤镜

This filter is in the Colors menu, and allows you to colorize an image, using the color intensity of each point with the corresponding color from the active gradient (the intensity 0, very dark, is replaced by the color at most left end of the gradient, progressively until the intensity is 255, very light, replaced by the most right color of the gradient. See 第 8.39 节 “Gradient Map” for more information.

GIMP comes presupplied with a large number of gradients. You can also add new gradients that you create or download from other sources. You can access the full set of available gradients using the Gradients dialog, a dockable dialog that you can either activate when you need it, or keep around as a tab in a dock. The current gradient, used in most gradient-related operations, is shown in the Brush/Pattern/Gradient area of the Toolbox. Clicking on the gradient symbol in the Toolbox is an alternative way of bringing up the Gradients dialog.

Some quick examples of working with gradients (for more information see Gradient Tool) are:

关于GIMP渐变的一些有用信息:

The gradients that are supplied with GIMP are stored in a system gradients folder.

Gradients that you create are automatically saved in the gradients folder of your personal GIMP directory. Any gradient files (ending with the extension .ggr) found in one of these folders, will automatically be loaded when you start GIMP. You can add more directories to the gradient search path, if you want to, in the Gradients tab of the Data Folders section of the Preferences dialog.

GIMP can also load gradient files in SVG format, used by many vector graphics programs. To make GIMP load an SVG gradient file, place it in the gradients folder of your personal GIMP directory, or any other folder in your gradient search path.

[提示] 提示

You can find a large number of interesting SVG gradients on the web, in particular at OpenClipArt Gradients [OPENCLIPART-GRADIENT].