|
Next: 8.3 The Emboss and Up: 8. Rendering Techniques Previous: 8.1 The Bucket Fill |
In Section 4.3.3, gradients were discussed as tools for making masks. However, they are also very useful for rendering.
Figure 8.4
Figure 8.5
As an example of using a gradient to render a 3D effect, a beveled look
is created for some text using a shapeburst gradient.
Figure 8.6(a)
Before anchoring, however, the text is centered. This is accomplished by typing C-x and then C-v in the image window. This trick cuts and then re-pastes the floating selection, perfectly centered in the window. After the floating selection is anchored into the transparent layer below it, the text is selected using the Alpha to Selection function found in the Layers menu. The selected text can be seen in Figure 8.6(a).
Figure 8.7(a)
Normally, gradients are applied to images by clicking and dragging in the image window. The two points defined by where the mouse was clicked and where it was released specify the orientation and the extent of the applied gradient. The curious thing about Shapeburst gradients, however, is that the result does not depend on where the mouse is clicked, nor on where it is released. It just fills the active region with a shapeburst, regardless of how the mouse is used.
The way in which a shapeburst gradient transitions from the foreground to background color can be controlled by the type of shapeburst. As shown in Figure 8.4, there are three different shapeburst types: angular, spherical, and dimpled. Shapeburst (spherical) produces the roundest bevel and Shapeburst (dimpled) the sharpest. Shapeburst (angular) is a compromise between the two.
The result in Figure 8.7 can be made to look a
lot jazzier by applying another shapeburst gradient to the Background
layer. The result of applying the Shapeburst (spherical)
gradient to the Background layer is shown in
Figure 8.8(a).
|
Next: 8.3 The Emboss and Up: 8. Rendering Techniques Previous: 8.1 The Bucket Fill |