played around

This commit is contained in:
Sam
2022-06-10 11:57:14 +12:00
parent e9f51e0687
commit 66de2a9016
4 changed files with 12 additions and 11 deletions

View File

@@ -14,7 +14,7 @@
let deg_per_sec = 30;
let time = 120;
let time = 600;
let fps = 60;
centerX = ctx.canvas.width / 2;
@@ -34,8 +34,8 @@
let colour1 = [137, 54, 255];
let colour2 = [158, 255, 54];
// Draw_nodal_expanding(5, 100000, rotation * 2 + 33000,0, colour1, colour2, 0.5, 2)
Draw_nodal_expanding(5, 10000, rotation+33000, 0, colour1, colour2, 1, 2)
Draw_nodal_expanding(5, 10000, rotation, 0, colour1, colour2, 1, 2)
console.log(rotation)
}, 1000 / fps);
rotation += deg_per_sec / fps; // was = j = angle, now = rotation
currentFrame += 1; // was = i