This Desmos shows the ratio of circle sizes and coordinates to make the squares: https://www.desmos.com/calculator/21zc5pcgkd
If you put a “wait 0.1 seconds” block before each pen move, it will make sense how it works