Repository navigation
rectangles
Home > Rectangles & squares
< Previous: Compass & straightedge | Next: Constraining with Shift >
Building rectangles and squares in Locus, and how each tool places its points.
Locus gives you a couple of ways to lay down four-sided shapes, each suited to a different way of thinking about the shape you want. This page covers the rectangle and square tools.
There are two rectangle tools, and the difference is which corners you click.
The XY-aligned rectangle stays square to the horizontal and vertical axes. You place it by clicking two opposite corners - one corner and the corner diagonally across from it. Whatever you drag, the sides stay aligned to the grid.
The directed rectangle can sit at any angle. You place it by clicking two adjacent corners - that first edge sets both the length and the tilt of the rectangle - and then setting the width of the opposite side. You can set that width two ways: by clicking a through point that the far edge should pass through, or by typing a width value directly. This is the tool to reach for when you want a rectangle rotated off the grid.
The square tool works like the directed rectangle's first two clicks, but the shape is locked square. You click two adjacent corners to set one side, and the other side is turned a fixed 90 degrees from it - so the width always matches the side length automatically. No third click needed.
Tip
You can also get a true square straight from the XY-aligned rectangle by holding Shift while you place the second corner - it forces equal width and height. See Constraining creation with Shift.
Rectangles and squares draw as an outline group, not a filled block of color. Each one is a tidy bundle of its four corner points and four boundary segments, kept together as a group. This matches Locus's "draw the curves, fill on demand" approach - you get editable outline geometry you can fill later if you want, rather than a solid region forced on you up front.
Because the corners are real points, you can drag any corner to resize, and the shape stays a proper rectangle as you do. Deleting the rectangle removes its whole group cleanly. A rectangle with zero width or height is rejected, so you can't accidentally create a flat one.
< Previous: Compass & straightedge | Next: Constraining with Shift >
- In the node graph: Rectangle: XY-Aligned | Rectangle: Directed | Square - build the same rectangles as nodes.
Found a bug or have feedback? Open an issue | Docs home | Videos | Credits
Getting Started
- Welcome
- How Locus came to be
- Videos
- Community & support
- Installing & launching
- Licensing & activation
- Beta License Agreement
- Core concepts
- Interface tour
- Your first pattern
Modeling - Drawing
- Canvas basics
- Points
- Typing coordinates
- Lines, rays & segments
- Circles & arcs
- Ellipses
- Compass & straightedge
- Rectangles & squares
- Constraining with Shift
Modeling - Editing
- Selecting objects
- Transform tools
- Align & distribute
- Duplicate, detach & ownership
- Regions & booleans
- Cleanup
- Weld & seams
- Style palettes & Re-ink
Annotation
Layers
Modeling Menus
- File
- Edit
- View
-
Draw
- Select
- Point
- Segment
- Line
- Ray
- Circle: Center Point
- Circle: Center Radius
- Circle: Through 3 Points
- Arc: Center, Start, End
- Straightedge
- Compass
- Compass: Radius
- Ellipse: Center + Axes
- Elliptical Arc
- Rectangle: XY-Aligned
- Rectangle: Directed
- Square
- Regular Polygon: Edge
- Regular Polygon: Center, Vertex
- Regular Polygon: Center, Edge Midpoint
- Dimension: Linear
- Dimension: Angle
- Dimension: Radial
- Label
- Construct
- Combine
- Transform
- Select
- Nodes
The Nodes Window
- Basics of visual programming
- How the node graph works
- Sockets & wires
- Adding & connecting nodes
- Sliders & number inputs
- Keeping the node graph tidy
- View menu (Nodes)
- Lists & collections
- Constants & unit conversions
Node Library
- Overview
- Input
-
Primitives
- Point
- Point: Polar
- Segment
- Line
- Ray
- Circle: Center Point
- Circle: Center Radius
- Circle: Apollonius
- Circle Tangent to...
- Circle: 3 Points
- Arc
- Ellipse
- Elliptical Arc
- Rectangle: XY-Aligned
- Rectangle: Directed
- Square
- Regular Polygon: Edge
- Regular Polygon: Center
- Rectangular Grid
- Oblique Grid
- Triangular Grid
- Construct
- Transform
- Image & Fields
- Combine
-
Data
- Measure
- Numbers
- Lists
- Select
- Clean up
- Display
Clusters
Bridging Modeling & Nodes
Patterns & Symmetry
Image-Driven Fields
Saving, Exporting & Files
Preferences & Language
CLI
Reference
