File: ch04s12s03.html

package info (click to toggle)
gimp-help 2%2B0.7-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 30,852 kB
  • ctags: 4
  • sloc: xml: 104,248; sh: 544; makefile: 262; perl: 42
file content (471 lines) | stat: -rw-r--r-- 17,877 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>12.3. Gradient Editor</title>
    <link rel="stylesheet" href="gimp-help-plain.css" type="text/css" />
    <link rel="stylesheet" href="gimp-help-screen.css" type="text/css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.66.1" />
    <link rel="start" href="index.html" title="&#10;      &#10;    " />
    <link rel="up" href="ch04s12.html" title="12. Gradients dialog" />
    <link rel="prev" href="ch04s12s02.html" title="12.2. Using the Gradients dialog" />
    <link rel="next" href="ch04s13.html" title="13. Palettes" />
  </head>
  <body>
    <div xmlns="" class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center" id="chaptername">12.3. Gradient Editor</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="ch04s12s02.html">Prev</a> </td>
          <th width="60%" align="center" id="sectionname">12.3. Gradient Editor</th>
          <td width="20%" align="right"> <a accesskey="n" href="ch04s13.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="sect2" lang="en" xml:lang="en">
      <div class="titlepage">
        <div>
          <div>
            <h3 class="title"><a id="gimp-gradient-editor-dialog"></a>12.3. Gradient Editor</h3>
          </div>
        </div>
      </div>
      <a id="gimp-gradient-edit"></a>
      <div class="informalfigure">
        <div class="mediaobject">
          <img src="../images/dialogs/dialogs-gradient-editor.png" />
          <div class="caption">
            <p>
          The gradient editor
        </p>
          </div>
        </div>
      </div>
      <p>
    The Gradient Editor allows you to edit the colors in a
    gradient.  It can only be used on gradients you have created
    yourself, not on the gradients that come pre-installed with
    GIMP.  This is a sophisticated tool that may take a bit of
    effort to understand.  The concept behind it is that a gradient
    can be decomposed into a series of adjoining
    <span class="emphasis"><em>segments</em></span>, with each segment consisting of a
    smooth transition from the color on the left edge to the color
    on the right edge.  The Gradient Editor allows you to pack
    together any number of segments, with any colors you want for the
    left and right edges of each segment, and with several options for
    the shape of the transition from left to right. 
  </p>
      <div class="variablelist">
        <p class="title">
          <b>Layout</b>
        </p>
        <dl>
          <dt>
            <span class="term">Name</span>
          </dt>
          <dd>
            <p>
          At the top of the dialog you see the name of the
          gradient.  You can edit this if you want to.
        </p>
          </dd>
          <dt>
            <span class="term">Gradient Display</span>
          </dt>
          <dd>
            <p>
          Below the name, you see the current result of your work.
        </p>
          </dd>
          <dt>
            <span class="term">Range Selection/Control Sliders</span>
          </dt>
          <dd>
            <p>
          Below the gradient display, you see a set of black and
          white triangles lined up in row.  A
          <span class="emphasis"><em>segment</em></span> is the space between two
          consecutive <span class="emphasis"><em>black</em></span> triangles.  Inside
          each segment is a white triangle, which is used to "warp"
          the colors in the segment, in the same way that the middle
          slider in the Levels tool warps the colors there.  You can
          select a segment by clicking between the two black triangles
          that define it.  You can select a range of segments
          by shift-clicking on them.  The selected range always
          consists of a set of <span class="emphasis"><em>consecutive</em></span>
          segments, so if you skip over any when shift-clicking, they
          will be included automatically.
          If "Instant update" is checked, the display is updated
          immediately after any slider movement; if it is unchecked,
          updates only occur when you release the mouse button.
        </p>
          </dd>
          <dt>
            <span class="term">Scrollbar</span>
          </dt>
          <dd>
            <p>
          Below the sliders is a scrollbar.  This only comes into play if
          you zoom in using the buttons at the bottom.
        </p>
          </dd>
          <dt>
            <span class="term">Feedback Area</span>
          </dt>
          <dd>
            <p>
          Below the sliders is an area that initially is blank, but
          depending on your actions, helpful hints or feedback
          messages may appear here.
        </p>
          </dd>
          <dt>
            <span class="term">Buttons</span>
          </dt>
          <dd>
            <p>
          At the bottom of the dialog appear five buttons:
        </p>
            <p><b>Save. </b>
      Clicking this button causes the gradient, in its current
      state, to be saved in your personal
      <tt class="filename">gradients</tt> folder, so that it will
      automatically be loaded the next time you start GIMP.
    </p>
            <p><b>Revert. </b>
      Clicking this button undoes all of your editing.  (However,
      at the time this is being written, this function is not yet
      implemented.)
    </p>
            <a id="gimp-gradient-editor-zoom-out"></a>
            <p><b>Zoom Out. </b>
      Clicking this button shrinks the gradient display
      horizontally. 
    </p>
            <a id="gimp-gradient-editor-zoom-in"></a>
            <p><b>Zoom In. </b>
      Clicking this button expands the gradient display
      horizontally.  You can then use the scrollbar to pan the
      display left or right.
    </p>
            <a id="gimp-gradient-editor-zoom-all"></a>
            <p><b>Zoom All. </b>
      Clicking this button resizes the display horizontally so that
      it fits precisely into the window.
    </p>
          </dd>
        </dl>
      </div>
      <div class="simplesect" lang="en" xml:lang="en">
        <div class="titlepage">
          <div>
            <div>
              <h4 class="title"><a id="id3340465"></a>Gradient Editor Menu</h4>
            </div>
          </div>
        </div>
        <div class="informalfigure">
          <div class="mediaobject">
            <img src="../images/dialogs/dialogs-gradient-editor-menu.png" />
            <div class="caption">
              <p>
      The Gradient Editor menu
    </p>
            </div>
          </div>
        </div>
        <p>
      You can access the Gradient Editor menu either by
      right-clicking on the gradient display, or by choosing the top
      item in the dialog's tab menu.  The menu allows you to set the
      left and right edge colors for each segment, and control the
      transition from one color to the other.
    </p>
        <div class="variablelist">
          <p class="title">
            <b>Options</b>
          </p>
          <dl>
            <dt>
              <span class="term">Left [Right] Endpoint's Color</span>
            </dt>
            <dd>
              <a id="gimp-gradient-editor-left-color"></a>
              <a id="gimp-gradient-editor-right-color"></a>
              <p>
            These options allow you to choose a color for the
            respective endpoint using a Color Editor.
          </p>
            </dd>
            <dt>
              <span class="term">Load Left [Right] Color From</span>
            </dt>
            <dd>
              <a id="gimp-gradient-editor-left-load"></a>
              <a id="gimp-gradient-editor-right-load"></a>
              <div class="informalfigure">
                <div class="mediaobject">
                  <img src="../images/dialogs/dialogs-gradient-editor-colorfrom.png" />
                  <div class="caption">
                    <p>
                  The "Load Color From" submenu
                </p>
                  </div>
                </div>
              </div>
              <p>
            These options give you a number of alternative ways of
            assigning colors to the endpoints.  From the submenu you
            can choose (assuming we're dealing with the left
            endpoint): 
          </p>
              <div class="itemizedlist">
                <ul type="disc">
                  <li>
                    <p><b>Left Neighbor's Right Endpoint. </b>
                  This choice will cause the color of the right endpoint
                  of the segment neighboring on the left to be assigned
                  to the left endpoint of the selected range.
                </p>
                  </li>
                  <li>
                    <p><b>Right Endpoint. </b>
                  This choice will cause the color of the right endpoint
                  of the selected range to be assigned to the left
                  endpoint.
                </p>
                  </li>
                  <li>
                    <p><b>FG/BG color. </b>
                  These choice cause GIMP's current foreground or
                  background color, as shown in the Toolbox, to be
                  assigned to the endpoint.
                </p>
                  </li>
                  <li>
                    <p><b>RGBA slots. </b>
                  At the bottom of the menu are 10 "memory slots".  You
                  can assign colors to them using the "Save" menu option
                  described below.  If you choose one of the slots, the
                  color in it will be assigned to the endpoint. 
                </p>
                  </li>
                </ul>
              </div>
            </dd>
            <dt>
              <span class="term">Save Left [Right] Color To</span>
            </dt>
            <dd>
              <a id="gimp-gradient-editor-left-save"></a>
              <a id="gimp-gradient-editor-right-save"></a>
              <p>
            These options cause the color of the endpoint in
            question to be assigned to the "memory slot" selected
            from the submenu.
          </p>
            </dd>
            <dt>
              <span class="term">Blending Function for Selection</span>
            </dt>
            <dd>
              <a id="gimp-gradient-editor-blending"></a>
              <div class="informalfigure">
                <div class="mediaobject">
                  <img src="../images/dialogs/dialogs-gradient-editor-blend.png" />
                  <div class="caption">
                    <p>
                  The Blending Function submenu
                </p>
                  </div>
                </div>
              </div>
              <p>
            This option determines the course of the transition from
            one endpoint of the range to the other, by fitting the
            specified type of function to the endpoints and midpoint
            of the range.
          </p>
            </dd>
            <dt>
              <span class="term">Coloring Type for Selection</span>
            </dt>
            <dd>
              <a id="gimp-gradient-editor-coloring"></a>
              <div class="informalfigure">
                <div class="mediaobject">
                  <img src="../images/dialogs/dialogs-gradient-editor-color.png" />
                  <div class="caption">
                    <p>
                  The Coloring Type submenu
                </p>
                  </div>
                </div>
              </div>
              <p>
            This option gives you additional control of the type of
            transition from one endpoint to the other:  as a line
            either in RGB space or in HSV space.
          </p>
            </dd>
            <dt>
              <span class="term">Flip Selection</span>
            </dt>
            <dd>
              <a id="gimp-gradient-editor-flip"></a>
              <p>
            This option does a right-to-left flip of the selected
            range, flipping all colors and endpoint locations.
          </p>
            </dd>
            <dt>
              <span class="term">Replicate Selection</span>
            </dt>
            <dd>
              <a id="gimp-gradient-editor-replicate"></a>
              <p>
            This option splits the selected range into two parts,
            each of which is a perfect compressed copy of the
            original range.
          </p>
            </dd>
            <dt>
              <span class="term">Split Segments at Midpoints</span>
            </dt>
            <dd>
              <a id="gimp-gradient-editor-split-midpoint"></a>
              <p>
            This option splits each segment in the selected range in into
            two segments, splitting at the location of the white
            triangle. 
          </p>
            </dd>
            <dt>
              <span class="term">Split Segments Uniformly</span>
            </dt>
            <dd>
              <a id="gimp-gradient-editor-split-uniform"></a>
              <p>
            This option is similar to the previous one, but it
            splits each segment halfway between the endpoints,
            instead of at the white triangle.
          </p>
            </dd>
            <dt>
              <span class="term">Delete Selection</span>
            </dt>
            <dd>
              <a id="gimp-gradient-editor-delete"></a>
              <p>
            This option deletes all segments in the selected range,
            replacing them with a single black triangle at the
            center, and enlarging the segments on both sides to fill
            the void.
          </p>
            </dd>
            <dt>
              <span class="term">Re-center Midpoints in Selection</span>
            </dt>
            <dd>
              <a id="gimp-gradient-editor-recenter"></a>
              <p>
            This option moves the white triangle for each segment in
            the selected range to a point halfway between the
            neighboring black triangles.
          </p>
            </dd>
            <dt>
              <span class="term">Re-distribute Handles in Selection</span>
            </dt>
            <dd>
              <a id="gimp-gradient-editor-redistribute"></a>
              <p>
            This option causes the black and white triangles in
            the selected range to be shifted so that the distances
            from one to the next are all equal.
          </p>
            </dd>
            <dt>
              <span class="term">Blend Endpoints' Colors</span>
            </dt>
            <dd>
              <a id="gimp-gradient-editor-blend-color"></a>
              <p>
            This option is only available if more than one segment
            is selected.  It causes the colors at interior endpoints
            in the range to be averaged, so that the transition
            from each segment to the next is smooth.
          </p>
            </dd>
            <dt>
              <span class="term">Blend Endpoints' Opacity</span>
            </dt>
            <dd>
              <a id="gimp-gradient-editor-blend-opacity"></a>
              <p>
            This option does the same thing as the previous option,
            but with opacity instead of color.
          </p>
            </dd>
          </dl>
        </div>
        <div class="caution" style="margin-left: 0.5in; margin-right: 0.5in;">
          <table border="0" summary="Caution">
            <tr>
              <td rowspan="2" align="center" valign="top" width="25">
                <img alt="[Caution]" src="../images/caution.png" />
              </td>
              <th align="left">Caution</th>
            </tr>
            <tr>
              <td colspan="2" align="left" valign="top">
                <p> 
      There is no "undo" available within the Gradient Editor, so be
      careful! 
      </p>
              </td>
            </tr>
          </table>
        </div>
      </div>
      <div class="simplesect" lang="en" xml:lang="en">
        <div class="titlepage">
          <div>
            <div>
              <h4 class="title"><a id="id3340959"></a>The first four gradients in the list</h4>
            </div>
          </div>
        </div>
        <p>
    The first four gradients in the list are special:  they use the
    Foreground and Background colors from the Toolbox Color Area, 
    instead of being fixed.  See the <a href="ch02s04s09.html" title="4.9. Gradients">Gradients</a>
    section for more information.
  </p>
      </div>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="ch04s12s02.html">Prev</a> </td>
          <td width="20%" align="center">
            <a accesskey="u" href="ch04s12.html">Up</a>
          </td>
          <td width="40%" align="right"> <a accesskey="n" href="ch04s13.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">12.2. Using the Gradients dialog </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> 13. Palettes</td>
        </tr>
      </table>
    </div>
  </body>
</html>