The symmetry group of a square, known as D4, is generated by two operations: counter-clockwise rotation by a quarter turn (denoted a) and reflection across a horizontal axis (denoted b).
Clicking each button performs the indicated operation. The running product is shown, and the current configuration highlighted.