Opacity mapping
Adjusting the Opacity Mapping of filling tools allow you to have control over transparent areas when applying a color. To open the Opacity Mapping window, do the following:
- Check the Opacity Mapping checkbox in the Tool Panel while using the Paint Bucket tool or any of the Filled Shapes.
- A small square thumbnail should have appeared: click on it to open the Opacity Mapping window:
You may draw the spline of your choice on the X and Y axes by placing points at your convenience. Three types of interpolation are available to connect the points with each other: Linear, Spline or Polynomial.
In accordance with your settings, a new opacity mapping will be defined. The two red splines define the opacity of each point of the map as indicated in the dotted example.
The File popup menu enables saving, loading or resetting the opacity mapping. It allows in addition to Add/Remove a custom opacity mapping and Select one from the Bin. If required, you may swap the two splines corresponding to the X axis and Y axis of the mapping (Swap button) or flip each spline vertically or horizontally (Flip X and Flip Y buttons).
The Copy button is used to copy the current spline (the one that has a point selected thus yellow) on the other axis. On the image above, the current spline is the Y spline. You may also adjust the mapping by clicking on the image and sliding the mouse.
Here again, you have pre-defined parameters at your disposal in the Bin menu. Go to File > Bin and select the pre-defined mapping of your choice.
Depending on the options chosen at the bottom of the panel, the opacity mapping will be applied:
- Without modifications (1)
- Adapting to the shape you will floodfill (2)
- According to a vector of your choice (3)
- In a circular fashion along a vector (4)
Additional remarks
The Gradients and Opacity mapping functions combined for use in a layer are very useful for creating effects of lighting or transparency independent of the background color or scenery (as they are not part of it).
This is the case for windows, tinted windows, lamps, projectors...
Above, the opacity gradients were used on a layer to create car headlights. They must no longer be modified when the background color changes, which results in considerable time saving.