Line Tool

Shortcut: L

The Line tool draws straight lines between two points. It uses Bresenham's line algorithm for pixel-perfect results at any angle.

Basic Usage

Press L , or pick Line from the toolbar button it shares with the Curve tool. Press where the line starts, drag to where it ends, and release to draw it. A preview follows the pointer until you let go.

Dragging with the left button draws in the primary color; dragging with the right button draws in the secondary color.

While you drag, a readout next to the pointer shows the line's length (L, the straight distance between its two end pixels) and its angle (∠, 0° pointing right, positive angles going down). For a pixel count with both ends included, use the Ruler.

Constraining Angles

Hold Shift while drawing to snap the line to 16 pixel-perfect angles:

  • Horizontal (0°/180°)
  • Vertical (90°/270°)
  • Diagonal (45°/135°/225°/315°)
  • Isometric slopes (26.565° and 63.435°, in every quadrant)

The snapped lines use exact integer pixel ratios (1:1 for diagonals, 2:1 for isometric slopes), so they render without stray steps, which keeps isometric outlines clean.

With the perspective grid on and View → Snap to Grid enabled, a line without the modifier snaps to the nearest vanishing line instead. Holding Shift wins over that snap.

Line Width

The line width is the Size field in the tool options row, shared with the Curve tool and the outlined shapes. It is separate from the brush size. Adjust it:

  • Type or drag the Size value in the tool options row
  • D + drag on the canvas
  • Ctrl + scroll wheel to step the width up or down

Drawing from the Middle

Hold Ctrl while dragging to grow the line out from its midpoint instead of from the point you started on. Holding Ctrl suspends grid snapping for the drag.

Ink Modes

The Line tool supports three ink modes, set in the tool options row:

  • Simple: the line replaces the pixels beneath it.
  • Lock Alpha: paints only where there are already pixels, so a line across a shape never spills outside it.
  • Shading: shifts each existing pixel the line crosses one step along the shading ramp instead of painting. Pixels whose color is not in the ramp stay as they are.

Tips

  • For connected line segments, you can also use the Brush with Shift +click to draw lines from the last brush position.
  • Lines are mirrored by symmetry when any axis is on.