Skip to content

Commit 3d7d1c5

Browse files
committed
removing sketches
1 parent 78cb39d commit 3d7d1c5

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

lib/empty-example/sketch.js

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
1-
let g;
2-
31
function setup() {
4-
createCanvas(400, 400);
5-
6-
g = createGraphics(200, 200);
7-
}
8-
9-
function draw() {
10-
g.background(0);
11-
g.stroke(255, 0, 0);
12-
g.strokeWeight(5);
13-
g.noFill();
14-
g.bezier(0, 0, 100, 0, 0, 100, 200, 200);
15-
//Comment out this line and for some reason the bezier gets drawn (to the canvas instead of the graphics object)
16-
image(g, 0, 0, 400, 400);
17-
}
2+
// put setup code here
3+
}
4+
5+
function draw() {
6+
// put drawing code here
7+
}

0 commit comments

Comments
 (0)