summaryrefslogtreecommitdiff
path: root/src/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.js')
-rw-r--r--src/main.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main.js b/src/main.js
index a86a38e..f1d3635 100644
--- a/src/main.js
+++ b/src/main.js
@@ -11,9 +11,10 @@ window.onload = () => {
const yaxis = new Vec3(0, 1, 0);
const zaxis = new Vec3(0, 0, 1);
- const grid = new MapGrid(30, 90);
+ const grid = new MapGrid(30, 30);
+ console.log(grid)
- let view = new Mat3();
+ let view = new Mat3().rotation(xaxis, -0.3*Math.PI);
let angle = 0;
canvas.onDraw = ct => {
@@ -22,8 +23,6 @@ window.onload = () => {
ct.lineWidth = 0.005;
ct.strokeStyle = "#E7305D";
ct.fillStyle = "blue";
- ct.arc(0, 0, 1, 0, 2*Math.PI);
- ct.stroke();
grid.render(ct, view);
};