---
title: "Adding Libraries to p5.js"
order: 20
lightbox: true
summary: ""
categories:
- p5.js
image: images/what-we-mean-when-we-say.jpeg
---


## Introduction

When we wish to use some feature that is not directly available in `p5.js`, say for example creating [Voronoi Tesselations](), then we need to import a JavaScript package into our `p5.js` session that allows us to do that.

Here is a short video that tells us how to do this:

{{< video https://youtu.be/pnJej5VMqCs >}}

## References

1. The Coding Train set of video tutorials <u><https://www.youtube.com/@TheCodingTrain></u>

1. Dan Shiffman. *The Nature of Code* book. <u><https://natureofcode.com></u>

1. CodeAcademy. *p5.js short cheatsheet*. <https://www.codecademy.com/learn/learn-p5js/modules/p5js-introduction-to-creative-coding/cheatsheet>



