How to use it: The cube automatically rotates, to control it with the arrow keys press the button in the top right. To turn the edges on or off press the button in the bottom right. Adjust the rotation speed with the slider. How it works: The rotating cube is made by joining the lines between 8 vertices, whose position is calculated using sine and cosine functions of a variable which increases at the rate of the rotation speed.