Necker Cube

Description

This is a necker cube illusion. This program was originally written in processing. The program shown here is written in javascript using the p5js library. The original processing code can be downloaded by clicking the link below.

Processing Version Download(.pde)
Directions:

• Click and Drag: Move stars

• Arrow Keys: Move cube

• Space Bar: Reset cube position

• Click canvas if keys not working

Code