This sample demonstrates the 3D cube is drawn with red, yellow, blue, green and light blue colors, rotate smoothly and correctly. And the functionality of play and pause, rotate direction left or right, size of the cube from 1 to 5, rotate speed from 1 to 10 levels.
Click the "Status" slider to play or pause the animation.
Click the "Direction" buttons to change the rotation direction.
Click the "Size" slider to change the animation size.
Click the "Speed" slider to change the rotation speed.
The WebGL is drew by WebGLRenderingContext interface, requestAnimationFrame and cancelAnimationFrame method.