Gradients

Gradients are created with the gradient material layer.

To add one, select a vector layer, then on the material tab of the properties window click the add button above the list of material layers and choose Gradient. Like any material layer, a gradient can be used as a fill, stroke, shadow, or anything else a mask can do.

The gradient settings are split into three areas — the gradient type and settings on the left, the list of gradient points in the middle, and a preview on the right.

Topology #

The five buttons at the top choose the shape of the gradient, which Skala calls the topology.

  • Linear gradients change color along a straight line.
  • Angular gradients sweep around the center of the layer, like a cone viewed from above.
  • Radial gradients change color outwards from the center of the layer, in circles.
  • Contour gradients follow the shape of the layer. The start of the gradient is in the middle of the shape, and the end of the gradient is at its edges. This is great for soft glows and bevels that match any shape.
  • Cellular gradients place colored points anywhere on a two dimensional plane, and fill the space between them. They’re great for mesh-like gradients and organic color fields.

Interpolation #

The interpolation popup sets how colors are blended between gradient points. The options depend on the topology.

Linear, angular, radial, and contour gradients can use:

  • Nearest, which has no blending at all — each point’s color is used until the next point, creating hard steps.
  • Linear, which blends in a straight line between points.
  • Cosine, which eases in and out of each point.
  • Hermite3 and Hermite5, which ease in and out of each point, with increasing amounts of smoothness.
  • CatmullRom, which draws a smooth curve through all the points, taking neighbouring points into account.

Cellular gradients can use:

  • Voronoi, which fills each cell with the color of the nearest point, creating hard edges.
  • Shepard, which blends colors based on the distance to each point. This is the default for cellular gradients.
  • Gaussian, which gives each point a soft, round area of influence.
  • Blobs, which makes points merge together like blobs of liquid.

If a topology change makes the current interpolation unavailable, Skala switches to a compatible one.

Gradient points #

Each gradient point has a color and a position. Cellular gradients have X and Y positions, and some of their interpolation types add more properties to each point:

  • Shepard points have an exponent, which controls how quickly each point’s influence falls away.
  • Gaussian points have a radius.
  • Blobs points have a radius and a blobbiness.

Positions and other values can be typed into the list of points, and can use expressions and constants. Colors can use constant colors, too.

To add a point, click the add button above the list, or hold ⌥ and click in the preview. Points can be dragged in the preview, and ⇧-clicking selects multiple points. The options button above the list has some handy commands — Duplicate Selected, Delete Selected, Reverse Color Order, Shuffle Colors, Distribute Positions Evenly, Randomize Positions, and New Random Gradient. These commands are also available by right-clicking the preview.

Tiling #

The tiling popup sets what happens past the ends of the gradient.

  • No Tiling stops the gradient at its ends.
  • Repeat repeats the gradient.
  • Mirror Repeat repeats the gradient, flipping every second repeat.
  • Clamp To Edge continues the end colors forever.
  • Mirror Clamp To Edge mirrors the gradient once, then continues the end colors.
  • Mirror Clamp To Border mirrors the gradient once, then stops.

Transform #

The gradient can be moved, scaled, sheared, and rotated using the transform fields below the tiling popup. Click Reset to return the transform to its defaults.

Legacy interpolation #

Skala is color managed, and gradients are interpolated in a color space aware way (sometimes called linear light). Many other design tools interpolate gradients without taking the color space into account, which can make some gradients look a little different.

The interpolation popup has two sections — Color space aware and Legacy. Choosing one of the legacy options, like Linear (Legacy), interpolates the gradient like many other design tools do. This can be useful for matching a design made elsewhere, but color space aware interpolation usually looks better.

Gradient maps #

The gradient map material layer is a filter that recolors the content below it using a gradient. The brightness of each color below is used to look up a color from the gradient — dark colors use the start of the gradient, and light colors use the end.

Gradient maps have gradient points and an interpolation popup that work the same way as linear gradients, including the legacy options. There’s no topology, tiling, or transform.

Further reading: Materials and Gradient maps article