fffiloni commited on
Commit
ebdf1e4
·
1 Parent(s): 97c7374

Update public/sketch.js

Browse files
Files changed (1) hide show
  1. public/sketch.js +8 -8
public/sketch.js CHANGED
@@ -28,7 +28,15 @@ function preload(){
28
  //console.log(arg)
29
  space_uri = arg[0];
30
  hf_tkn = arg[1];
 
 
 
 
31
 
 
 
 
 
32
  });
33
  }
34
  function setup() {
@@ -41,15 +49,7 @@ function setup() {
41
  pixelDensity(1);
42
  background('white');
43
 
44
- console.log(space_uri)
45
- grAPI = new GRAPI(space_uri, hf_tkn);
46
- Draws = new DrawHandler();
47
- AS = new AnimSys(12, 12, 30, 8);
48
 
49
- for (let i = 0; i < AS.initial_frame_nb; i++) {
50
- AS.create_new_frame();
51
- AS.display_frame(0);
52
- }
53
 
54
  Cursor = new OrientedCursor('canvas');
55
  Cursor.catchCursor();
 
28
  //console.log(arg)
29
  space_uri = arg[0];
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
  function setup() {
 
49
  pixelDensity(1);
50
  background('white');
51
 
 
 
 
 
52
 
 
 
 
 
53
 
54
  Cursor = new OrientedCursor('canvas');
55
  Cursor.catchCursor();