A ring, and a stick laid across it that just touches the hole. However wide the hole is, the ring has exactly the area of a circle with the stick as its diameter: the blue circle beside it.
The source code is at github.com/KirillOsenkov/LiveGeometry. It is written in .NET and Avalonia.