How to add libraries to p5 Web editor?

I am new to using p5 and am struggling to find out how to add libraries to the web editor.


1 Like

basically for P5.js you use HTML, the
index.html file
to link to libs.
so you start with the defaults:

    <script src=""></script>
    <script src=""></script>
    <script src=""></script>

( copy from the for a new projects index.html )
add there are contributed libraries
you can download and link ( see also each example there )
or just link like

<script src=""></script>

so as you see there ( at p5.jds) are the 3 main libs loaded by default

  • p5
  • dom
  • sound

already, what is lots to play with,
and the other libs documented there can be added also.

so my question is, why you not started with
β€œi want to do this or that”
if you already know the library what could help you, to do that,
then why you not named it
? kind of confusing?