Simon created three optical illusions in Processing (Java) taking part in with shade. For higher impact, you possibly can obtain Simon’s code on GitHub: https://github.com/simon-tiger/colorIllusions
Illusion 1: A checkerboard with blue and yellow squares, however for those who transfer away from it, you see white.
Mode 1: A disk with pink and inexperienced, however whenever you spin it, it turns into yellow.
Mode 2: A disk with pink and cyan, however whenever you spin it, it disappears.
Illusion 3: A rainbow of colours, however whenever you pause it from flickering, you solely see pink, inexperienced, and blue.
If Illusion 2 Mode 2 would not work, change the background from 255 to between 128 and 135.
If any of the opposite illusions do not work, attempt doing them on a unique display screen.
Inspired by Physics Girl: https://www.youtube.com/watch?v=Xp6bxCh_p7c&t=401s
Simon talks in regards to the first two illusions in one other video: https://youtu.be/c-hHBvj_dkE