Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
stalgiag authored Jan 12, 2023
1 parent 4efc812 commit 4bc3b9a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ p5.xr sketches can be run with [p5's online editor.](https://editor.p5js.org/) A
## Getting Started
1. Make sure that you have [the most recent version of p5.js](https://p5js.org/download/).
2. Check out the [Device and Browser Support Section](https://stalgiag.github.io/p5.xr/#/quick-start/device-support).
3. [Try out one of the Examples](https://stalgiag.github.io/p5.xr/#/quick-start/examples)!
3. Add p5.xr to your project. This can be done most easily by adding the script link to a CDN in the `<head>` of your HTML file underneath the p5 link:
```
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.5.0/p5.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/p5.xr/dist/p5xr.min.js"></script>
```
4. Change the `createCanvas()` call in your p5 WEBGL sketch to `createVRCanvas()` and put it in `preload()` -or-
5. [Try out one of the Examples](https://stalgiag.github.io/p5.xr/#/quick-start/examples)!
## Contributors ✨
Expand Down

0 comments on commit 4bc3b9a

Please sign in to comment.