Skip to content
Snippets Groups Projects
Commit 4fc98014 authored by Will Billingsley's avatar Will Billingsley
Browse files

Button 7 - slow the sine wave down so it's not crazy

parent a8a540d7
No related branches found
No related tags found
No related merge requests found
...@@ -165,7 +165,7 @@ Your code should: ...@@ -165,7 +165,7 @@ Your code should:
* Render an `svg` element with the `#renderhere` tag, at least 300px high and wide. * 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 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 `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 * 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment