diff --git a/main.js b/main.js index 8245a5f..fe32c0b 100644 --- a/main.js +++ b/main.js @@ -91,6 +91,12 @@ var main = function () { ]); }; + document.getElementById('reset').onclick = function () { + curve.setPoints([ + [200, 75] + ]); + }; + }; if (hasWebGLSupportWithExtensions(['OES_texture_float'])) { @@ -98,4 +104,4 @@ if (hasWebGLSupportWithExtensions(['OES_texture_float'])) { } else { document.getElementById('columns').style.display = 'none'; document.getElementById('unsupported').style.display = 'inline-block'; -} \ No newline at end of file +}