Depth in two dimensions

Using a 2D canvas to explore how one might communicate space in a physically flat environment.
October 1, 2018 · Dive in

Sitting around one night I asked myself "How might one convey depth in two dimensions?"

I tackled this project with some succinct, pure JavaScript and no external libraries. All controllable attributes are saved as CSS variables, which are then controlled by a few HTML elements and mouse position.

How would you convey depth in two dimensions?