Squares

A program to arrange black squares on a white background. Selected squares are drawn with a red border.

Mouse:
Click the background to create a square (and select it).
Click a square to select it (and deselect the others).
Drag a square to move it.

Keyboard:
a, A: select all squares
n, N: deselect all squares
UP, DOWN, LEFT, RIGHT: move selected squares
[, ]: rotate selected squares
<, >: shrink or expand selected squares
BACKSPACE: delete selected squares
g, G: toggle grid lines
s, S: save the layout of the squares
l, L: load the layout of the squares
p, P: save picture of squares
c, C: output Processing code to draw squares

Source code

Built with Processing