brsh

Fill and stroke ​

This page shows you how to paint a layer with colours, images, video and patterns, and how to add outlines.

How to add a fill ​

  1. Select a layer.
  2. In the panel, find Fill.
  3. Click + (Add fill).
  4. Click the swatch to open the colour picker.

A layer can have many fills. Drag them to change their order.

How to choose a kind of fill ​

In the colour picker, pick a tab: Solid, Gradient, Image, Video, Pattern or Shader.

  • Gradient types are Linear, Radial, Angular, Diamond and Mesh. The Type menu lists them too. Click a gradient bar to add a stop. Drag a stop to move it.
  • Image: choose how it fits with Fill, Fit, Stretch or Crop. You can also tile it and adjust exposure, contrast, saturation, temperature, tint, highlights and shadows.
  • Video: use an .mp4, .webm or .mov file. The canvas shows one still frame. Play plays the video in a loop. It is muted unless you turn on Sound in Play.
  • Shader: pick the Shader tab. Click the upload button to choose a .glsl or .frag file, or type its path. The settings of the shader show below. If the shader does not compile, the layer draws nothing and a message tells you why.
  • Pattern: pick another layer (Choose a layer…). It repeats as tiles. Set scale, Gap X, Gap Y, and use Offset rows or Offset columns for a hexagonal look. The layer you select on the canvas can become the tile.

How to set a colour ​

  1. Open the colour picker.
  2. Type a hex code, or use the RGBA or HEX fields.
  3. Use the eyedropper to take a colour from the screen.
  4. Paste a CSS colour, such as #FF6666 or hsl(0 100% 70%), and press Enter.

Every colour field is the same: a swatch, the hex and the opacity. Click the diamond button (◇) to link the colour to a colour variable. See Variables and themes.

How to add a stroke ​

  1. Select a layer.
  2. In Stroke, click Add stroke.
  3. Set Weight and Position: Inside, Center or Outside.
  4. Set a width for each side if you need it.
  5. For Cap and Join, pick from the lists (Butt, Round, Square; Miter, Round, Bevel).

Click Add another stroke for more than one stroke. Drag them to reorder. Click Hide stroke to turn one off for a while.

How to make a dashed stroke ​

  1. In Stroke, set Style to Dashed.
  2. Set Dash (length) and Gap.

Notes:

  • Dashes follow rounded corners, ellipses and paths.
  • HTML export draws a dashed border. CSS picks its own dash lengths. SVG keeps the exact pattern.

Known limit ​

Above 200% zoom, a very large image can look a little soft.