Strokes
In Skala, strokes are part of a layer’s material. A stroke is a material layer with a mask that paints a band along the edges of the shapes, rather than filling them. This means a stroke can be painted with anything a material layer can generate — a solid color, a gradient, or an image.
The quickest way to add a stroke is to select a vector layer, click the add button above the list of material layers on the material tab of the properties window, and choose Stroke from the presets. Strokes can also be made by adding any generator material layer and changing its mask.
Inside, outside, and centered strokes #
Skala has three mask types that can make strokes, and the one you choose sets where the stroke sits.
Insetdraws the stroke inside the edges of the shapes.Outsetdraws the stroke outside the edges of the shapes.Strokedraws the stroke centered on the edges of the shapes, half inside and half outside. TheStrokepreset uses a stroke mask. It is also the only mask type that has cap and corner settings.
Inset and outset masks always follow the outline of the filled area. A stroke mask runs along the path segments themselves, so it works on open paths, like a line drawn with the pen tool. For an open path, the stroke doesn’t run along the imaginary line that would close the path.
Thickness, offset, and blur #
The thickness sets the width of the stroke. For a stroke mask, the thickness is the full width of the band, centered on the edge. For inset and outset masks, the thickness is the width of the band inside or outside the edge. For a stroke mask, a thickness of zero means no stroke.
The offset moves the stroke horizontally and vertically, and the blur softens it. Moving or blurring an inset or outset stroke can cut it off at the edge of the shapes. Turning on Overflow stops that from happening.
Caps #
Caps set the shape of the ends of a stroke mask on open paths. Closed paths and shapes like rectangles don’t have ends, so caps don’t affect them.
Roundadds a half circle to each end, as wide as the stroke.Buttcuts the stroke off flat at the end point.Squarecuts the stroke off flat, half of its thickness past the end point.Trianglebrings the stroke to a point, half of its thickness past the end point.
Joins #
Joins set the shape of the corners of a stroke mask. They apply to the corners of paths, and to the corners of rectangles, polygons, and stars that have no corner radius.
Roundrounds the outside of each corner.Miterextends the outer edges of the stroke until they meet in a sharp point. Very sharp corners (sharper than about 11.5 degrees) get a bevel instead, so the points don’t shoot off into the distance.Bevelcuts the outside of each corner off flat.
Where two shapes in the same vector layer cross, the corners are always round.
Multiple strokes #
A material can have as many material layers as you like, so a layer can have as many strokes as you like. For example, an inset stroke and an outset stroke with different colors can make a double border, or a few centered strokes with decreasing thickness can make a striped outline.