Materials
In Skala, vector layers are painted by materials. Materials are the primary way to add color, gradients, strokes, and shadows.
Each material is constructed with layers. And, each layer in a material contains two main parts — what is being painted, and where that paint goes. This means it’s possible to mix and match anything. For example, a gradient can be used in a shadow, or an image can be used in a stroke. Anything can be anywhere. It’s different and incredibly awesome.
If you’d like to fill an object with a color, use the color material layer and set the mask to fill.
If you’d like to create a shadow, use the color material layer and set the mask to outset, with an offset, blur, and thickness.
If you’d like to create an edge highlight, use the color material layer and set the mask to inset, with an offset and thickness.
If you’d like a gradient as a border, use the gradient material layer and set the mask to outset, with the border size as the thickness.
Editing materials #
Materials are edited on the material tab of the properties window. The list on the left shows the layers in the material, and material layers at the top of the list are drawn in front of layers further down. Selecting a material layer shows its settings on the right.
To add a material layer, click the add button above the list. The menu is split into three sections:
- Generators create color —
Color,Gradient, andImage. - Filters change the content below them —
Color Adjust,Color Mixer,Gradient Map, andBlur. - Presets add a ready-made layer —
Stroke,Drop Shadow,Outer Glow,Inner Highlight,Inner Shadow,Radial Gradient,Gaussian Gradient, andBlob Gradient.
The options button next to the add button can duplicate, delete, and sort material layers. If the selected layers don’t have a material, click Create Material to make one.
Every material layer has an opacity, color blending, and alpha blending, so material layers can be blended with the layers below them in the material.
Masks #
The mask controls where a material layer is painted. There are four mask types:
Fillpaints the inside of the shapes. Adding a thickness shrinks the fill inwards from the edges.Insetpaints a band inside the edges of the shapes. The thickness sets how wide the band is.Outsetpaints a band outside the edges of the shapes. The thickness sets how wide the band is.Strokepaints a band centered on the edges of the shapes. The thickness sets how wide the band is.
Stroke masks need a thickness greater than zero to be visible. Inset and outset masks with a thickness of zero can still be visible if they have an offset or a blur, which is how the shadow and glow presets work.
The offset moves the mask horizontally and vertically, and the blur softens it. Normally, an inset or fill mask is clipped to the inside of the shapes, and an outset mask is clipped to the outside. Turning on Overflow lets the mask spill across the edges, which is handy when an offset or blur would otherwise be cut off.
Stroke masks also have caps and corners settings. Further reading: Strokes
Color material layer #
The color material layer generates a solid color. This is the normal way to fill a shape with a color, or add a stroke.
The color can be a unique color, or a constant, so many layers can share the same color. The buttons below the color value pick a random color, sample a color from the screen, or set the color to black or white. Further reading: Color picker
Color material layers can also add noise, which is useful for dithering gradients, or for adding texture. The noise types are:
None.Uniform,Gaussian,Laplace, andGumbel, which are random noise with different distributions.Nasik,Bayer, andBlue Noise, which are ordered noise patterns.
Noise Amplitude sets the strength of the noise. The button next to the amplitude opens the noise seed, which changes the random pattern. Type a new seed, or click the random button next to it to try a new pattern.
Gradient material layer #
The gradient material layer generates many types of gradients, including linear, angular, radial, contour, and cellular gradients.
Further reading: Gradients
Image material layer #
The image material layer displays images. The image material layer is a good way to add a texture for a fill. Please note that images used in materials are embedded into Skala documents. This is different to image layers, that are not embedded.
Click Set to choose an image, or drop an image file onto the preview. Click Remove to remove the image.
Tiling XandTiling Yset what happens past the edges of the image —No Tiling,Repeat,Mirror Repeat,Clamp To Edge,Mirror Clamp To Edge, orMirror Clamp To Border.Fittingsets how the image is sized.Nativedraws the image at its original resolution,Fillstretches it to the layer,Containfits the whole image inside the layer while keeping its aspect ratio, andCoverfills the layer while keeping its aspect ratio (cropping any excess).Customuses the transform settings.Filteringsets how the image is sampled when it is scaled up.Nearestkeeps hard pixel edges, andLinearsmooths them.- The transform fields move, scale, shear, and rotate the image.
Resetreturns them to their defaults.
Blur material layer #
The blur material layer blurs content below. This includes the material layers below it, and the artwork behind the vector layer. This can be used to mimic the vibrancy effect on iOS, and for other creative purposes.
The X radius and Y radius can be set separately, for stretched blurs. Combine a blur with a fill mask to blur only what’s behind the shape.
Color Adjust material layer #
Makes color adjustments to content below. The hue, saturation, brightness, and contrast can be adjusted. Click Reset to start again.
Color Mixer material layer #
Mixes the color channels of the content below. Each output channel (red, green, blue, and alpha) is made from an amount of each input channel, plus an offset. For example, making red entirely from blue, and blue entirely from red, swaps the red and blue channels. The Grayscale, Invert, and Sepia buttons set up common mixes. Click Reset to start again.
Gradient Map material layer #
Applies a gradient map effect to underlying colors. The brightness (luminance) of each color below is used to look up a color from the gradient — dark colors get the start of the gradient, and light colors get the end. Gradient maps are cool.
Further reading: Gradients
Sharing materials #
Materials can be shared between many layers, so changing the material updates them all.
Further reading: Shared materials and eyedropper