Update public/sketch.js
Browse files- public/sketch.js +5 -5
public/sketch.js
CHANGED
@@ -32,7 +32,10 @@ function preload(){
|
|
32 |
grAPI = new GRAPI(space_uri, hf_tkn);
|
33 |
Draws = new DrawHandler();
|
34 |
AS = new AnimSys(12, 12, 30, 8);
|
35 |
-
|
|
|
|
|
|
|
36 |
});
|
37 |
}
|
38 |
|
@@ -64,10 +67,7 @@ function setup() {
|
|
64 |
Pencil = new BrushPoint('pencil', 0, 0);
|
65 |
brushesPoints.push(Pencil);
|
66 |
|
67 |
-
|
68 |
-
AS.create_new_frame();
|
69 |
-
AS.display_frame(0);
|
70 |
-
}
|
71 |
|
72 |
|
73 |
|
|
|
32 |
grAPI = new GRAPI(space_uri, hf_tkn);
|
33 |
Draws = new DrawHandler();
|
34 |
AS = new AnimSys(12, 12, 30, 8);
|
35 |
+
for (let i = 0; i < AS.initial_frame_nb; i++) {
|
36 |
+
AS.create_new_frame();
|
37 |
+
//AS.display_frame(0);
|
38 |
+
}
|
39 |
});
|
40 |
}
|
41 |
|
|
|
67 |
Pencil = new BrushPoint('pencil', 0, 0);
|
68 |
brushesPoints.push(Pencil);
|
69 |
|
70 |
+
|
|
|
|
|
|
|
71 |
|
72 |
|
73 |
|