Update public/sketch.js
Browse files- public/sketch.js +8 -6
public/sketch.js
CHANGED
@@ -30,13 +30,7 @@ function preload(){
|
|
30 |
hf_tkn = arg[1];
|
31 |
console.log(space_uri)
|
32 |
grAPI = new GRAPI(space_uri, hf_tkn);
|
33 |
-
Draws = new DrawHandler();
|
34 |
-
AS = new AnimSys(12, 12, 30, 8);
|
35 |
|
36 |
-
for (let i = 0; i < AS.initial_frame_nb; i++) {
|
37 |
-
AS.create_new_frame();
|
38 |
-
AS.display_frame(0);
|
39 |
-
}
|
40 |
|
41 |
});
|
42 |
}
|
@@ -49,6 +43,14 @@ function setup() {
|
|
49 |
noLoop();
|
50 |
pixelDensity(1);
|
51 |
background('white');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
|
53 |
canvas.mousePressed(function(){
|
54 |
Draws.startPath();
|
|
|
30 |
hf_tkn = arg[1];
|
31 |
console.log(space_uri)
|
32 |
grAPI = new GRAPI(space_uri, hf_tkn);
|
|
|
|
|
33 |
|
|
|
|
|
|
|
|
|
34 |
|
35 |
});
|
36 |
}
|
|
|
43 |
noLoop();
|
44 |
pixelDensity(1);
|
45 |
background('white');
|
46 |
+
|
47 |
+
Draws = new DrawHandler();
|
48 |
+
AS = new AnimSys(12, 12, 30, 8);
|
49 |
+
|
50 |
+
for (let i = 0; i < AS.initial_frame_nb; i++) {
|
51 |
+
AS.create_new_frame();
|
52 |
+
AS.display_frame(0);
|
53 |
+
}
|
54 |
|
55 |
canvas.mousePressed(function(){
|
56 |
Draws.startPath();
|