Dynamic Gradients

From Apache OpenOffice Wiki
Jump to: navigation, search



Dynamic Gradients

You can control transparency gradients in the same manner as color gradients. Both types of gradient can be used together. With a transparency gradient, the direction and degree of an object’s fill color change from opaque to transparent (in a regular gradient, the fill changes from one color to another, but the degree of transparency remains the same).

If you have assigned transparency to an object with a color fill, you can control it by clicking the Transparency icon AOO41DG04 104a iconTransparency.png. To define a transparent gradient, select an object, choose a transparency fill from the Sidebar or Line and Filling toolbar. The transparency icon is now active. When you click on this icon, a dashed line connecting two squares appears on the object. Move the two squares to modify the gradient. You can define the gradient direction (vertical, horizontal, or at any angle) and the spot where the transparency begins.

A regular color gradient can be defined in the same manner. Select an object, choose a gradient fill from the Sidebar or Line and Filling toolbar. The Gradient icon AOO41DG04 104b iconGradient.png is now active. When you click on the gradient icon, a dashed line connecting two squares appears on the object, just as it does for a transparency gradient.

In both cases, click outside the object to set the gradient.

Documentation note.png If the transparency and gradient icons are not visible, you can display them using View → Toolbars → Mode.

Moving the squares will have different effects, depending on the type of gradient. For example, in a linear gradient, the start and end squares will always be located to either side of the object's center point.

The three examples in Figure 108 demonstrate how the type and degree of transparency can be controlled.

Dynamic Gradients
DG3Ch4F39a.png A single color object and a transparency gradient, covering part of the underlying object. The gradient can be dynamically adjusted, made more transparent by moving the white square or more opaque by moving the black square.
DG3Ch4F39b.png An object with a color gradient, completely covering another object. The gradient is adjusted dynamically by moving the squares — the color of the square relating to the increase or decrease in that color.
DG3Ch4F39c.png An object with both color and transparency gradients, partly covering the underlying object.
Figure 108: Dynamic gradients
Content on this page is licensed under the Creative Common Attribution 3.0 license (CC-BY).
Personal tools