A quick demo using Terra.
A Pen by Kyle Wendling on CodePen.
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Project Eulertitle</title> | |
| </head> | |
| <body> | |
| <button onclick="euler_one()">Try Euler One</button> |
A quick demo using Terra.
A Pen by Kyle Wendling on CodePen.
A Pen by Kyle Wendling on CodePen.
| // ZIM Cat - Interactive Media Framework at https://zimjs.com - code creativity! | |
| // Also see https://zimjs.com/distill to minify only the functions in your app | |
| // (c) 2021 ZIM - free to use - donations welcome of course! https://zimjs.com/donate | |
| // With thanks... | |
| // Thanks to ZzFX - Zuper Zmall Zound Zynth - Micro Edition for play() method of Synth | |
| // MIT License - Copyright 2019 Frank Force - https://github.com/KilledByAPixel/ZzFX | |
| // Thanks to Josh Forisha - https://github.com/joshforisha for open-simplex-noise-js | |
| // ZIM converted Noise() from https://www.npmjs.com/package/open-simplex-noise | |
| // Thanks to Frank Los for coding the ZIM Keyboard() |
| //uses D3.js v7 https://d3js.org/d3.v7.min.js | |
| //uses https://cdn.rawgit.com/jwagner/simplex-noise.js/master/simplex-noise.js | |
| let time = 0; | |
| const noise = new SimplexNoise(); | |
| const seed = 200 + 100 * Math.random(); | |
| let chart = {}; | |
| chart.make = function (set) { |
| /* | |
| * A fast javascript implementation of simplex noise by Jonas Wagner | |
| Based on a speed-improved simplex noise algorithm for 2D, 3D and 4D in Java. | |
| Which is based on example code by Stefan Gustavson ([email protected]). | |
| With Optimisations by Peter Eastman ([email protected]). | |
| Better rank ordering method by Stefan Gustavson in 2012. | |
| Copyright (c) 2018 Jonas Wagner |