Malfatti squares

How to draw Malfitti squares.

use medians