This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const canvas = document.createElement('canvas'); | |
| const ctx = canvas.getContext('2d'); | |
| const tau = 2 * Math.PI; | |
| const DEGREE = 9, CIRCLES = 3000; | |
| document.body.append(canvas); | |
| (onresize = () => { | |
| canvas.width = innerWidth; | |
| canvas.height = innerHeight; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| window.AudioContext = window.AudioContext || window.webkitAudioContext; | |
| const audioContext = new AudioContext(); | |
| const BuiltIn = require("core/math/builtin"); | |
| // returns the selected expression as a js function | |
| const parsedSelectedExpression = () => { | |
| // from the great fireflame | |
| const computeContext = () => { | |
| // Emulate what happens in the web worker |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* ~ instructions ~ | |
| * ∙ paste this code inside the javascript console (ctrl+shift+j) | |
| * ∙ create a new table with Alt+Q | |
| * ∙ add a point with Alt+A | |
| * ∙ close the shape with Alt+S. or Alt+C. or Alt+W. | |
| * ∙ enjoy! | |
| */ | |
| (() => { |