A recreation of 1ucasvb's Polygonal Sine in the HTML5 canvas element.