Skip to content

Commit

Permalink
Docs typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
flatpickles committed Oct 28, 2023
1 parent 5d0572f commit 89fa0ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/project-subtypes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Though anything you can do with Sketchbook can be accomplished by subclassing th

## `P5Project`

`P5Project` is a relatively lightweight `Project` subclass that makes it easy to use [p5.js](https://p5js.org/) within Sketchbook. When you create a Sketchbook project that subclasses `P5Project`, a p5.js will be spun up in ["instance mode"](https://p5js.org/reference/#/p5/p5), and you'll be able to use this p5 instance for rendering.
`P5Project` is a relatively lightweight `Project` subclass that makes it easy to use [p5.js](https://p5js.org/) within Sketchbook. When you create a Sketchbook project that subclasses `P5Project`, p5.js will be spun up in ["instance mode"](https://p5js.org/reference/#/p5/p5), and you'll be able to use this p5 instance for rendering.

The `P5Project` class defines a few methods that match the standard functions used in a p5.js context, so you can build p5 projects in a familiar way. When using p5.js in instance mode, all library functions must be called on a p5 instance; `P5Project` offers a `p5` instance variable, and the same reference is also passed as a parameter to p5-related methods.

Expand Down

0 comments on commit 89fa0ed

Please sign in to comment.