Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixes
  • Loading branch information
perminder-17 committed May 18, 2025
commit 50d6530742923b607111585eb32e4d5a8e583fa5
21 changes: 6 additions & 15 deletions lib/empty-example/sketch.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
let g;

function setup() {
createCanvas(400, 400);

g = createGraphics(200, 200);
}

function draw() {
g.background(0);
g.stroke(255, 0, 0);
g.strokeWeight(5);
g.noFill();
g.bezier(0, 0, 100, 0, 0, 100, 200, 200);
image(g, 0, 0, 400, 400);
}
// put setup code here
}

function draw() {
// put drawing code here
}
Loading