Animation assignment

I chose to make a square block that seems to be rolling and is it rolls it gets bigger. The main difficulty I had with it was trying to get it to rotate and getting the 3d shape. Once I figured that out it wasn’t too difficult asides from the fact that I can’t figure out how to make the box roll in the middle always now it starts off rolling near the top and as it gets bigger goes to the bottom. My animation follows the following rules from the illusion of life. It follows #6 slow in and slows out if you analyze in the middle it becomes a square shape and you cant see its 3d nature. You can then see it again when it is slowly coming in and slowly leaving. It does follow # 7 arc as its rotation does cause it to go in a circular movement. Please see my animation in the link below, thank you.

https://www.openprocessing.org/sketch/509956