Your browser doesn't support this canvas sorry ):

Programming practice inspired by the first 113 pages, or 3 chapters of the WebGL Programming Guide.

Check out the book for the original source code. Examples were re-written in TypeScript.