Overview
The shortest route to parameter-generated rectangles, circles, ellipses, triangles, and diamonds. Standard shapes are faster here than drawing paths by hand, and this node uniquely outputs the same shape simultaneously as an image, path, and Surface. One node can supply a mask, UI part, and lighting base.
Usage tips
- The default white shape works directly as a mask. Connect it to mask inputs such
as
path_maskorblend_by_mask. - For only an edge, use
filled = false+stroke_width ≥ 1, useful for UI frames and selectors. - To move or arrange shapes, pass the
pathoutput topath_transform/path_arrayinstead of using the imageoutput; the vector path does not degrade. - To try pixel-art gloss or depth, connect
surface→surface_light_preview. Increasingsurface_heightcreates an elevation difference at the edge.
Common pitfalls
- The shape overflows or no longer matches the canvas: the node receives canvas
dimensions in
幅and高さwhen added, but they become independent afterward. Update them when the canvas changes. - The background looks black:
outputhas a transparent background; black comes from preview settings. To add a background, composite it oversolid_colorwithblend. - No border appears:
stroke_width = 0is still the default. Raise it to at least 1. - Even
stroke_widthvalues such as 2 and 4 render at the requested pixel width, using a half-pixel right/down center bias.
Notes
outputis an image with a transparent background.pathcan be reused byPathMask,Path Transform,Shape Sweep, and similar nodes.surfacetreats transparent pixels as background and writes material ID, face ID, and height only where the shape exists.- Surface parameters are collapsed under "Surface" in the inspector.
- Immediately after adding the node from the editor,
幅and高さreceive the current canvas dimensions. - Afterward,
幅and高さare not locked to the canvas and can be changed independently. - With
filled = false, the interior is not filled. - With
stroke_width = 0, no edge is drawn.
Examples
- Create
Rectangleand connect it directly toBlend.- Quickly create a simple band or panel image.
- Create
Circleand send itspathtoPath Transform.- Reuse it as a mask with different positions or sizes.
- Create
Diamondand connect it toPathMask.- Make a diamond cutout or UI decoration.
- Set
stroke_widthand disable fill.- Create an outline-only shape.
- Connect
surfacetoSurface Light Preview.- Increase
surface_heightto create edge relief and adjust its lit appearance.
- Increase
Related nodes
bezier_path— hand-draw a free shape in the editorline_generate— create straight lines or polylinespath_transform/path_array— move, rotate, or repeat the path outputpixel_line— create a sharply stepped pixel line