Rectangle Tool
Shortcut: U
The Rectangle tool draws rectangles and squares, outlined or filled, with optional rounded corners.
Basic Usage
Press U , or pick Rectangle from the shapes button in the toolbar (shared with Circle, Triangle, Hexagon and Star). Drag from one corner to the opposite one and release to draw. Dragging with the right button draws in the secondary color.
While you drag, a readout next to the pointer shows the rectangle's size in pixels as W × H.
Drag Modifiers
- Shift : keep the rectangle square.
- Ctrl : draw from the center, so the point you pressed becomes the middle of the rectangle. Holding Ctrl also suspends grid snapping for the drag.
- Alt : rotate. Holding it mid-drag freezes the current size and turns the pointer into a rotation handle; release it to carry on sizing in the rotated frame.
Fill Modes
The tool options row has a two-button switch:
- Outline: draws only the border
- Fill: draws a solid rectangle
In Outline mode a Size field sets the border width. It is shared with the other shape tools and separate from the brush size; it hides while Fill is on. You can also flip between the two modes by pressing U again, or clicking the tool's button again, while the Rectangle tool is active.
Rounded Corners
The Corner Radius button in the tool options row opens a small panel with one radius per corner. While any corner is rounded, the button shows the largest radius.
- Per-corner radius: top-left, top-right, bottom-right and bottom-left each have their own value, so you can build tabs, pills or speech bubbles
- Link corners: the button in the middle locks all four values together; unlink to edit them one by one
- Rounding works in both Outline and Fill mode
- The Select tool has the same control, with its own separate values
All four radii at 0 give sharp corners, which is the default.
Ink Modes
The Ink dropdown in the tool options row has two modes for rectangles:
- Simple: the rectangle replaces the pixels beneath it.
- Lock Alpha: paints only where there are already pixels, which recolors an existing shape without spilling outside it.
Tips
- For filled rectangles with a different outline color, draw a filled rectangle first, then draw an outline rectangle on top.
- Rectangles are mirrored by symmetry.