Update public/sketch.js
Browse files- public/sketch.js +4 -3
public/sketch.js
CHANGED
@@ -39,12 +39,13 @@ function setup() {
|
|
39 |
Draws = new DrawHandler();
|
40 |
AS = new AnimSys(12, 12, 30, 8);
|
41 |
|
42 |
-
|
|
|
|
|
|
|
43 |
AS.create_new_frame();
|
44 |
AS.display_frame(0);
|
45 |
}
|
46 |
-
|
47 |
-
});
|
48 |
Cursor = new OrientedCursor('canvas');
|
49 |
Cursor.catchCursor();
|
50 |
Pencil = new BrushPoint('pencil', 0, 0);
|
|
|
39 |
Draws = new DrawHandler();
|
40 |
AS = new AnimSys(12, 12, 30, 8);
|
41 |
|
42 |
+
|
43 |
+
|
44 |
+
});
|
45 |
+
for (let i = 0; i < AS.initial_frame_nb; i++) {
|
46 |
AS.create_new_frame();
|
47 |
AS.display_frame(0);
|
48 |
}
|
|
|
|
|
49 |
Cursor = new OrientedCursor('canvas');
|
50 |
Cursor.catchCursor();
|
51 |
Pencil = new BrushPoint('pencil', 0, 0);
|