Skip to content

Commit

Permalink
Fixed docs
Browse files Browse the repository at this point in the history
  • Loading branch information
acamposuribe committed Feb 2, 2024
1 parent 1b7fedd commit 2a980b2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ If you plan to use p5 instance mode, you need to load p5.brush in a specific way
brush.instance(p)

p.setup = function() {
p.createCanvas(700, 410);
// Important to create the canvas in WEBGL mode
p.createCanvas(700, 410, p.WEBGL);
// Don't forget to load the library after canvas is created
brush.load()
};

p.draw = function() {
Expand Down
Loading

0 comments on commit 2a980b2

Please sign in to comment.