Pour the paint from the squares on a triangle's two short sides into the square on its long side, and find when it fits.
What you'll do
Paint fills the two small squares. Tipped into the big square, will it fall short, fill it or spill over?
Slide the Pour knob to the right to tip the paint into the big square.
Side c, across from the square corner, is the longest side. It's called the hypotenuse.
Drag the end of side a until it's 5 squares long.
Next the corner between a and b opens wider. Will the paint fall short, fill the big square or spill over?
Drag the Corner knob to open the corner to 110°.
Close the corner until the paint fills the big square exactly.
Change side b so the big square holds 34 little squares.
How accurate it is
Exact
In a right-angled triangle the square on the hypotenuse equals the two squares on the other sides together: a² + b² = c².
It holds only when the corner is a right angle. Wider, the big square is bigger than the two together; narrower, it's smaller.
Every area on screen is worked out from the side lengths and the corner, and the grids count the same little squares.
At a right angle the two strips of paint in the big square are the two rectangles Euclid's proof cuts it into.
Simplified
Paint stands in for area: a flat layer of the same thickness everywhere, so it's how much surface it covers that counts.
Where the corner isn't a right angle, the two strips are just laid in from each end of side c. The gap is the difference in area. Where they overlap, the label gives the paint left over; with very unequal sides a strip is cut at the square's edge, so the hatched overlap can be smaller than that.
Sides a and b come in whole little squares only, so the squares on them can be counted.