Skip to content

Commit 82d0a57

Browse files
committed
Add missing createCanvas
1 parent 968ae28 commit 82d0a57

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/type/p5.Font.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -921,6 +921,7 @@ function font(p5, fn) {
921921
* <div>
922922
* <code>
923923
* async function setup() {
924+
* createCanvas(100, 100);
924925
* await loadFont('assets/inconsolata.otf');
925926
* let p = createP('p5*js');
926927
* p.style('color', 'deeppink');

0 commit comments

Comments
 (0)