
We finished Term 3’s coding classes with a coding challenge to test the effectiveness of an optical illusion.
While they may not look it, the horizontal lines in this image are straight and parallel. To prove it, the classes took the code that produces the image and tweaked the settings to change the offset, size and colour of the squares, all of which help to determine the effectiveness of the illusion.
You can see from the ‘chequerboard’ below that simply separating the squares proves the shape of the lines. Likewise, changing the colour of the squares – in this case to ‘cyan’ – reduces the illusion, due to there being less colour contrast than for the black.





Code Champions September 2024

