Hero image

Cafe Wall Illusion

What the code does

This demo builds on the demos so far by drawing squares and framed squares to create the famous Cafe Wall Illusion. Various mathematical functions are used in its construction. If you were feeling brave you could combine the two "FillRect" function calls into one (an exercise left to the reader).

Visualisation

The code

Instagram image Instagram image Instagram image Instagram image Instagram image Instagram image