Pick any point on a pizza and make four straight cuts through it, each 45° from the last, so there are eight slices. Take every other slice. You get exactly half the pizza, however far from the middle the point is.
The source code is at github.com/KirillOsenkov/LiveGeometry. It is written in .NET and Avalonia.
Also here: Catriona Agg's geometry puzzles and puzzles from Geometry Snacks made interactive; the same gallery in plain JavaScript; and how to embed a live drawing in your own page.