Overview
Paints terrain onto a rule canvas as a numerically specified rectangle. It is a building block for parametric map generation, such as changing room dimensions with sliders or managing wall positions through variables.
Usage tips
- Chain nodes to build a structure:
rule_rect(floor) →rule_rect(wall) →rule_polyline(corridor) →rule_render. Each node parameter becomes a map-design variable. - Promote position and size to input pins 📌 and connect waveforms to animate an expanding room.
- Combine with hand painting through
rule_operation_merge.
Related nodes
rule_polyline/rule_path— line-based placement nodesrule_operation_merge— combines with hand paintingrule_render— renders the resultrule_canvas— the hand-painting workbench
What this node does
Creates a rectangle operation from numeric X/Y/width/height values instead of
drawing a rectangle in the Rule Canvas editor. Every value is promotable, so
variables, waveforms, and timelines can move walls or rooms. Connect canvas to
append the operation, chaining multiple nodes to build up a map.
Inputs, outputs, and settings
| Kind | ID | Type | Description |
|---|---|---|---|
| Input | canvas |
RuleCanvas (optional) | Canvas to append to. Creates a new canvas when unconnected. |
| Output | canvas |
RuleCanvas | Canvas with the rectangle operation added. |
| Setting | material_id |
Text | Terrain name to paint. |
| Setting | x / y / width / height |
Int (promotable) | Rectangle position and dimensions in cells. |
| Setting | map_width and others |
Int | Map and cell settings for a new canvas. |
Example wiring
RuleRect.canvas -> RulePolyline.canvas -> RuleRender.canvas
Autotile creation.asset -> RuleRender.asset