Assignment 2

Functions

  • changeColor : It will change the color of the cube and the background.
  • rotateX : Rotate the cube on X axis
  • rotateY : Rotate the cube on Y axis
  • rotateZ : Rotate the cube on Z axis
  • Speed : It will change the speed of the rotation of the cube.
  • start : It will start rotating the cube.
  • stop : It will stop rotating the cube.

Working