An Optical Illusion

The perceived color of an object can depend greatly on its surrounding illumination. In the animation below, the rectangle stays exactly the same shade of gray.

The Illusion

Source

The animation above was taken from a blog post by Colin Fay. See the post for the simple R code used to create it!