Clean lines: slopes and "staircases"
Theory
Machine translation, not yet reviewed by a native speaker.
A computer draws a line with Bresenham's algorithm: it walks along the long axis and accumulates an "error" — how far the real straight line has drifted from the current cell. Once it's more than half a cell, it takes a step along the other axis. Integers only, so it's fast. Our "Line" tool (L) is the same Bresenham.
In pixel art a line has rules:
1. Clean slopes. Segments of the same length: 1:1 (steps of one pixel), 2:1 (steps of two), 3:1… Such lines are smooth.
2. No jaggies. If the segment lengths jump around — 2, 3, 1, 4 — the eye sees a broken line.
3. No "doubles". A corner of three pixels (an L) makes the line thicker at that point. The editor's Pixel-perfect mode removes such corners on the fly while you draw with the pencil.
With Shift, the editor's line snaps to clean angles: 0°, 1:2, 1:1, 2:1, 90°.