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
- Select a layer.
- In the panel, find Fill.
- Click + (Add fill).
- 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,.webmor.movfile. 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
.glslor.fragfile, 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
- Open the colour picker.
- Type a hex code, or use the RGBA or HEX fields.
- Use the eyedropper to take a colour from the screen.
- Paste a CSS colour, such as
#FF6666orhsl(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
- Select a layer.
- In Stroke, click Add stroke.
- Set Weight and Position: Inside, Center or Outside.
- Set a width for each side if you need it.
- 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
- In Stroke, set Style to Dashed.
- 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.