diff options
author | sanine <sanine.not@pm.me> | 2022-05-29 14:50:55 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2022-05-29 14:50:55 -0500 |
commit | 3bc2838360627f78a91a7cad81f3bc97711410c2 (patch) | |
tree | 54d260b45895c1923a785efce817b94836660f35 /main.js | |
parent | d35e02ecdcef6d4f120bd572f2aae36b467b7761 (diff) |
refactor: move everything into src/ subdirectory
Diffstat (limited to 'main.js')
-rw-r--r-- | main.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/main.js b/main.js deleted file mode 100644 index d02e0fb..0000000 --- a/main.js +++ /dev/null @@ -1,21 +0,0 @@ -import Voronoi from './modules/3rdparty/rhill-voronoi-core.js'; -import Terrain from './modules/Terrain.js'; - -const $ = id => document.getElementById(id) - -window.onload = () => { - let canvas = document.createElement('canvas'); - canvas.setAttribute('width', window.innerWidth); - canvas.setAttribute('height', window.innerHeight); - const ct = canvas.getContext('2d'); - - const scale = Math.min(window.innerWidth, window.innerHeight); - ct.scale(scale, scale); - - const terrain = new Terrain(); - terrain.renderGrid(ct); - - - const root = $('root'); - root.appendChild(canvas); -} |