Rectangles, ellipses, paths and text are painted with fills and strokes. If objects have filters applied to them, then the filters are processed before compositing. Objects are composited with opacity and blending into the canvas.
Fill and Stroke
You can modify the fill, stroke and their opacities in the Property Panel.
Select the fill or stroke button to modify colors. Fill and stroke can be set to none, a solid color, linear gradient or radial gradient.
Color values can be entered as red, green and blue values (0-255) or as a six digit hex value. The alpha value (0-100) is only available for gradient stop colors. To change the alpha value of solid colors, use the fill and stroke opacities.
A gradient bar is shown for linear and radial gradients. To add new stop color, click on the gradient bar. To delete a stop, select it and press the Delete key. You can drag a stop to change its offset.
When the color popover is open, the Node tool displays gradient control handles on the canvas. You can move the handles to change the position of the gradient and its stops.
You can modify the fill rule of objects. The fill rule determines how self-intersecting paths are filled. Select the filled or open circle button to select a non-zero or even-odd winding rule.
Advanced Stroke Properties
Finer controls over stroke appearance can be found under the Advanced Stroke property section. You can adjust the following:
- Cap - the shape of the stroke caps: butt, round or square.
- Join - the shape of the stroke joins: miter, round or bevel.
- Miter - a value indicating when a sharp or a bevel join is used, applicable only when join is set to miter.
- Dash - stroke dashing, made of dash and gap values separated with semicolons.
- Offset - dash offset from the beginning of the path.
There are ten different filter effects that can be applied to objects. You can add them to objects in the Property Panel by clicking the Add (+) button in the Filters section and choosing a filter. To delete a filter, click the label of the filter and click the Delete (-) button. To move a filter up or down, click the label and the up or down arrows.
Keyshape supports CSS shorthand filters and they can all be animated. The filters are:
- Blur - Applies a Gaussian blur that blurs in all directions.
- Brightness - Adjusts the brightness of the object. A value of 100% leaves the object unchanged.
- Contrast - Adjusts the contrast of the object. A value of 100% leaves the object unchanged.
- Drop Shadow - Creates a drop shadow with X and Y offsets and the given color and blur radius.
- Grayscale - Converts the object to grayscale. A value of 0% leaves the object unchanged, 100% is completely grayscale.
- Hue Rotate - Applies a color shift to the object. A value of 0° leaves the object unchanged.
- Invert - Inverts the colors of the object. A value of 0% leaves the object unchanged and 100% is completely inverted.
- Opacity - Adjusts the opacity of the object. A value of 100% leaves the object unchanged and 0% is completely transparent.
- Saturate - Saturates the colors of the object. A value of 100% leaves the object unchanged and 0% is completely desaturated (grayscale). Values above 100% create super-saturated colors.
- Sepia - Applies a sepia color filter to the object. A value of 0% leaves the object unchanged and 100% is completely sepia.
When you import SVG files that use traditional SVG filters, Keyshape will not display them. However, those filters will be preserved and you can still see them in browser previews and exported SVGs.
Applying filters to objects can have an impact on performance in SVG animations. Blurs and drop shadows with large radius on large objects tend to have a strong impact on performance on browsers. Use filters sparingly in SVG animations and always check how they perform in browsers.
Note: When you export as an SVG file, be aware that only Firefox can display CSS shorthand filters. When you export Animated GIFs or videos, then all the filters can be used without any compatibility or performance issues.
Opacity and Blending
To create transparent objects, change the opacity value.
Blending affects how objects are composited over underlying objects. By default, objects are composited over all objects under them. It is possible to isolate blending to affect only a subgroup by selecting the isolation option.
Note that automatic isolation occurs if the opacity is not 100%, blending is not set to Normal or there is a filter.
You can copy the fill and stroke of an object to other objects with the Eye Dropper tool. Select the objects to be changed, then select the Eye Dropper tool and click the source object, i.e. the object with the fill and stroke color to be copied.