MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / init

Function init

assets/js/phyllotaxis.js:10–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8
9//initial function
10function init() {
11 //setting things up
12 canvas = document.getElementById("canvas");
13 ctx = canvas.getContext("2d");
14 w = canvas.width = window.innerWidth;
15 h = canvas.height = window.innerHeight;
16 ctx.translate(w / 2, h / 2);
17
18 n = 0; c = 6;
19
20 //drawing or animating the stars
21 animate();
22}
23
24function animate() {
25

Callers

nothing calls this directly

Calls 1

animateFunction · 0.70

Tested by

no test coverage detected