Skip to content

Shape

Node icon
Generator

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.

Shape

Shape TypeChoice
Default: Circle

Shape to rasterize

  • RectangleA rectangle with optional rounded corners.
  • CircleA perfect circle that fills the bounding box.
  • EllipseAn oval that stretches to fill the bounding box.
  • PolygonA regular polygon with a configurable number of sides (3–32).
  • StarA star shape with configurable point count and inner radius.
Corner RadiusInteger · px/%
Default: 0 Range: 0–2048

Rounded corner radius (Rectangle only)

SidesInteger
Default: 6 Range: 3–32

Number of sides (Polygon only)

PointsInteger
Default: 5 Range: 3–16

Number of star points

Inner RatioNumber
Default: 0.4 Range: 0.01–0.99

Inner radius ratio; 0.01=spiky, 0.99=circular

Layout

LayoutChoice
Default: 0 Range: 0–1

Single = one shape; Tile = repeat in grid

ColumnsInteger
Default: 4 Range: 1–32

Number of columns in tile grid (Tile only)

RowsInteger
Default: 4 Range: 1–32

Number of rows in tile grid (Tile only)

SpacingInteger · px/%
Default: 0 Range: 0–200

Gap between grid cells in pixels (Tile only)

PaddingInteger · px/%
Default: 0 Range: 0–500

Margin around the edges of the output image (Tile only)

Lock Shape to OutputToggle
Default: true

Keep shape = output size (Single only)

Shape WidthInteger · px/%
Default: 512 Range: 1–8192

Shape bounding box width (Single, unlocked)

Shape HeightInteger · px/%
Default: 512 Range: 1–8192

Shape bounding box height (Single, unlocked)

Output

Width pxInteger
Default: 512 Range: 1–8192

Output image width in pixels

Height pxInteger
Default: 512 Range: 1–8192

Output image height in pixels

Position

Position XInteger · px/%
Default: 256 Range: -8192–8192

Shape center X position (Single only)

Position YInteger · px/%
Default: 256 Range: -8192–8192

Shape center Y position (Single only)

Fill

FillToggle
Default: true

Enable solid fill on shape interior

FillColor (RGBA)
Default: rgba(255, 255, 255, 255)

Fill color

Stroke

StrokeToggle
Default: false

Enable stroke outline on shape edge

Stroke WidthInteger · px/%
Default: 2 Range: 1–500

Stroke thickness in pixels

AlignmentChoice
Default: Outside

Stroke grows Inside/Center/Outside the edge

  • InsideStroke grows inward from the shape edge — total size stays the same.
  • CenterStroke straddles the edge — half inside, half outside.
  • OutsideStroke grows outward from the shape edge — total size increases.
StrokeColor (RGBA)
Default: rgba(0, 0, 0, 255)

Stroke color

Notes

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.

  • Use a Shape with no fill and only a stroke to create ring/outline shapes.
  • Star inner radius 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.
  • Unlock “Lock Shape to Output” to position shapes off-center within a larger canvas.