From 4fc98014be1649dafd8d1cd116fdf13998d187fc Mon Sep 17 00:00:00 2001 From: Will Billingsley <wbilling@une.edu.au> Date: Thu, 18 Jul 2019 20:54:20 +1000 Subject: [PATCH] Button 7 - slow the sine wave down so it's not crazy --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ca06465..b4a43a6 100644 --- a/README.md +++ b/README.md @@ -165,7 +165,7 @@ Your code should: * Render an `svg` element with the `#renderhere` tag, at least 300px high and wide. * The SVG should show the graph of `sin(k * x + t)`. * The value `k` should come from an input box on the page. It is a number, and editing the number should change the chart - * The value `t` is the time, taken from `(new Date()).getTime()` + * The value `t` is the time, taken from `(new Date()).getTime() / 1000` * The chart should update at least 30 times per second. Use the `setInterval()` function for this: https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setInterval -- GitLab