Optical Illusions Part 2, Nested Loop Assignment

Write a program using dudraw to replicate any one of the optical illusions shown below (you choose). [Note to instructors: this can be modified to any language using most options for graphics packages.] Modify the image in some way to make the image distinct from what is shown below (change colors, number of lines, thickness of lines, or any other modifications)

Submit the project with the usual naming conventions for your file and the usual requirements for documentation (docstrings and comments),

Illusion 1: Hermann Scintillating Grid Illusion (the black dots appearing in each white circle are illusory)

Hermann Scintillating Grid

Illusion 2: Hermann Scintillating grid, polar form (requires trigonometry):

Hermann Scintillating Grid, Polar Form

Illusion 3: Cafe Wall Illusion (gray lines are actually straight and parallel)

Cafe Wall Illusion

Illusion 4: Skye Blue Cafe Wall Illusion (purple stripes are parallel.

This is a simplified version of the stunning illusion created by Victoria Skye, which won the 2017 Illusion of the Year: (https://illusionoftheyear.com/2017/10/skye-blue-cafe-wall-illusion/)

Victoria Skye's Cafe Wall Illusion

Illusion 5: Image of a cat, hidden with masking

To see the image, either drag the window, or. turn your head to move your eyes quickly across the screen. The image is created by using a background image, lightening it up significantly, and drawing a checkerboard of black squares on top of it. If you implement this illusion, upload a folder containing both your source code and your background image. This example was inspired by Akiyoshi Kitaoka's work. (His optical illusions webpage: https://www.ritsumei.ac.jp/~akitaoka/index-e.html, and a twitter post showing his masking example: https://twitter.com/AkiyoshiKitaoka/status/980340277264003072

Image of a cat's face, masked with a checkboard of black squares

Illusion 6: Animated Gradient Illusion (The moving square is not changing color and is the same color as the other two gray squares.)

Illusion 7: Walking Feet Illusion (the yellow and purple rectangles are moving smoothly with no pauses, and the purple rectangle is at all times directly aligned with the yellow rectangle)

This illusion was first demonstrated by Stuart Anstis (http://anstislab.ucsd.edu/illusions/footsteps/)