Shapes

Skala includes quite a few primitive shapes, each with multiple parameters that control how they appear. Shapes can be combined using boolean operations, to add or remove sections, resulting in more complex forms. Many icons can be built just with primitive shapes and boolean operations.

If you need even more control, shapes can be converted into bézier paths using the Convert to Path button in the vector property tab, or Layer › Convert To Path, then altered with the edit tool. Paths can also be drawn from scratch with the pen tool.

Further reading: Pen tool and paths

Creating shapes #

Select a shape tool, then drag on the canvas to draw a shape. Clicking without dragging creates a shape at the default size.

  • Holding ⌥ uses the center as the starting point, rather than the top left.
  • Holding ⇧ constrains the aspect ratio to be equal width and height.
  • Holding Space allows the shape to be repositioned while drawing.
  • Holding ⇧ when you start drawing adds the new shape to the selected vector layer. Holding ⌥ subtracts it, and holding ⇧⌥ excludes it.

While dragging out a rectangle, superellipse, polygon, or star, the arrow keys adjust the shape. ↑ and ↓ increase and decrease the main parameter, while ← and → jump to the minimum and maximum. W, A, S, and D do the same thing while dragging, so the adjustments can be made with the left hand while the right hand is on the mouse. Once the drag ends, A and S go back to being the edit and star tool shortcuts.

  • Rectangle corner radius, from 0 to 128px, in 1px steps.
  • Superellipse curvature, from 2 to 4, in 0.1 steps.
  • Polygon sides, from 3 to 12.
  • Star points, from 3 to 12.

Snapping indicators show while hovering with a shape tool, so you can see where the shape will start before clicking.

Further reading: Snapping

Shape properties #

Every shape has an opacity, and a set of boolean operation buttons, in the vector property tab (or the mask tab, for shapes in mask layers). Most shape parameters accept expressions and constants, and each shape type has a few preset buttons for common setups.

Rectangle #

Each corner of the rectangle can have a different corner radius. The Corners field sets all four at once, and the four fields below it set each corner individually. Rounded corners keep their circular shape, even if the rectangle’s height and width are different, or it has been scaled non-uniformly.

Superellipse #

The superellipse is a shape that can morph smoothly from a star, to a diamond, to a perfect ellipse, to a rectangle with rounded corners. This is controlled via the curvature parameter, which ranges from 0.1 to 10.

  • A curvature of 2 is a perfect ellipse, or a circle if the width and height are equal. This is how circles and ellipses are drawn in Skala — there’s no separate ellipse tool.
  • A curvature of 1 is a diamond.
  • Values below 1 curve inwards, like a four-pointed star.
  • Values above 2 get closer and closer to a rectangle. A curvature of 4 is often called a squircle.

Please note that the rounded shapes are not normal rounded rectangles — the corners are continuous curves that are similar, but not identical, to the iOS app icon shape.

Polygon #

A regular polygon, where the sides are all the same length. The number of sides and corner radius can be controlled. The bounding box is set up to fit polygons with any number of sides. If you’d like the bounding box to fit snugly on a shape with fewer sides, convert it to a path.

Star #

You got a star! Skala’s star primitive shape has parameters for the number of points, inner radius, and separate corner radii for the outer and inner corners. As stars go, it’s pretty flexible.

  • Points sets the number of points, with a minimum of 3.
  • Inner radius sets how far in the inner corners sit, from 0 to 1. It’s a fraction of the outer radius, so 0.5 places the inner corners halfway between the center and the tips. New stars start at 0.618, which makes the sides of neighbouring spokes parallel on a five pointed star.
  • Outer corner rounds the tips of the points.
  • Inner corner rounds the corners between the points.