processing / p5.js-editor

Deprecated desktop editor for p5.js
https://p5js.org
MIT License
338 stars 91 forks source link

How to import a library like original Processing IDE? #179

Closed vinjn closed 8 years ago

knotech commented 8 years ago

Hi @vinjn. Have you tried opening the index.html file in the project and adding a <script src='/path/to/the/library.js'>?

I would recommend either:

  1. Copying your library.js file into the folder of your project and setting the path from there.
  2. Or if you want to pull it from a CDN, go to the preferences pane, and toggle the 'Run In Browser' option, and adding the <script src='https://your.CDN.com/library.js'> to the index.html file in the project.
vinjn commented 8 years ago

Thanks. @knotech Closing.