sarahciston commited on
Commit
301f915
·
verified ·
1 Parent(s): 85a51af

Instance of p5.js

Browse files
Files changed (1) hide show
  1. sketch.js +14 -0
sketch.js CHANGED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ new p5(function (p5) {
2
+ p5.setup = function(){
3
+ p5.noCanvas()
4
+ console.log('p5 instance loaded')
5
+ }
6
+
7
+ p5.draw = function(){
8
+ //
9
+ }
10
+ }
11
+
12
+ window.onload = function(){
13
+ console.log('DOM loaded, sketch.js loaded')
14
+ }