From 141ca23695e3db8ae2af261a705a505c39a11beb Mon Sep 17 00:00:00 2001 From: Falk Date: Fri, 19 Dec 2014 19:42:37 +0100 Subject: [PATCH] Update main.js Added the reset option. --- main.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 +}