Shape
Generates geometric shapes (rectangle, circle, ellipse, polygon, or star) with optional fill and stroke.
The Shape node creates crisp geometric primitives using signed distance fields (SDFs). Choose from rectangle, circle, ellipse, polygon, or star, then configure fill color, stroke width, and alignment.
Shapes are useful for generating masks, creating simple graphics, or as structural elements in procedural workflows. The SDF approach means edges are always mathematically sharp, with no aliasing artifacts.
Parameters
Section titled “Parameters”Pins
Shape
Shape to rasterize
Clockwise rotation of the shape in degrees
Shape width as a percentage of the cell width
Shape height as a percentage of the cell height
Keep the shape bounding box equal to the output image size
Shape bounding box width
Shape bounding box height
Rounded corner radius
Number of sides for the regular polygon
Number of points on the star
Inner radius ratio. 0.01 = spiky, 0.99 = almost circular
Layout
Single: one shape at a position. Tile: repeat in a grid
Number of columns in the tile grid
Number of rows in the tile grid
Gap between grid cells
Margin around the edges of the output image
Output
Width of the output image in pixels
Height of the output image in pixels
Position
X position of the shape center
Y position of the shape center
Keep the shape centered in the output image; re-centers automatically when the output size or size_ref changes
Fill
Fill color
Enable solid fill on the shape interior
Stroke
Enable stroke outline on the shape edge
Stroke color
Stroke thickness
Whether the stroke grows inside, outside, or centered on the edge
Some parameters are only visible depending on the current settings. Corner Radius only appears for rectangles. Sides only appears for polygons. Points and Inner Ratio only appear for stars. Stroke settings only appear when Stroke is enabled. In Single layout mode you can set the shape size and position. In Tile layout mode you can set columns, rows, and spacing instead.
Usage Tips
Section titled “Usage Tips”- Use a Shape with no fill and only a stroke to create ring/outline shapes.
- Drag the shape directly in the preview to move, scale, and rotate it, instead of typing into the Position and size fields.
- Star Inner Ratio controls how spiky the star is: 0.01 is very spiky, 0.99 is nearly circular.
- Combine shapes with Mask From Image to create geometric selections for compositing.
- Lock Center (on by default) keeps the shape centered as the output size or Size Ref changes; turn it off to reveal Position X/Y and place the shape anywhere.
- Unlock “Lock Shape to Output” to make the shape smaller than the canvas, then turn off Lock Center to position it off-center.
- Switch Layout to Tile to generate a grid of shapes with configurable rows, columns, and spacing.
- Use Corner Radius on rectangles to create rounded rectangles and pill shapes.
- Connect a Size Ref input to size the output from another image or mask; the width and height controls are disabled while a reference is connected.