# p5.Play in p5.js editor

**URL:** https://discourse.processing.org/t/p5-play-in-p5-js-editor/17506
**Category:** Libraries
**Created:** [February 1, 2020, 10:21pm UTC](https://discourse.processing.org/t/p5-play-in-p5-js-editor/17506 "2020-02-01T22:21:05Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![shodai](https://avatars.discourse-cdn.com/v4/letter/s/50afbb/32.png) [@shodai](https://discourse.processing.org/u/shodai)
#### Post date: [February 1, 2020, 10:21pm UTC](https://discourse.processing.org/t/p5-play-in-p5-js-editor/17506/1 "2020-02-01T22:21:05Z")

</div>

Does anyone know how to use the P5.Play library in the p5.js editor? I believe that the library has to be referenced in the index.html file, I just do not know how to do that or where to point the reference too.

---

<div class="post-metadata">

### Author: ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)
#### Post date: [February 2, 2020, 2:33am UTC](https://discourse.processing.org/t/p5-play-in-p5-js-editor/17506/2 "2020-02-02T02:33:45Z")

</div>

[https://editor.p5js.org/kll/sketches/\_1NnYvVhB](https://editor.p5js.org/kll/sketches/_1NnYvVhB)

- upload the library to `/lib/ `
- call it in index.html ` <script src="lib/p5.play.js"></script>`
- use command from lib like `createSprite`

---

<div class="post-metadata">

### Author: ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)
#### Post date: [February 2, 2020, 2:36am UTC](https://discourse.processing.org/t/p5-play-in-p5-js-editor/17506/3 "2020-02-02T02:36:11Z")

</div>

> [@Sprites in the p5 editor](https://discourse.processing.org/t/sprites-in-the-p5-editor/17451/2):
>
