Skip to content

Commit

Permalink
Merge pull request #214 from TiborUdvari/docs/readme-update
Browse files Browse the repository at this point in the history
Readme p5.xr min version update
  • Loading branch information
stalgiag authored May 21, 2024
2 parents 69e955f + e2ea5b3 commit 1bc85cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ p5.xr sketches can be run with [p5's online editor.](https://editor.p5js.org/) A
- Do some simple raycasting for gaze-based interaction in both AR and VR

## Getting Started
1. Make sure that you have [the most recent version of p5.js](https://p5js.org/download/).
1. Use the [the most recent version of p5.js](https://p5js.org/download/) or at least version `1.7.0`.
2. Check out the [Device and Browser Support Section](https://stalgiag.github.io/p5.xr/#/quick-start/device-support).
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://cdnjs.cloudflare.com/ajax/libs/p5.js/1.9.2/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-
Expand Down

0 comments on commit 1bc85cd

Please sign in to comment.