Reference registerAddon()

registerAddon()

Loads a p5.js library.

A library is a function that adds functionality to p5.js by adding methods and properties for sketches to use, or for automatically running code at different stages of the p5.js lifecycle. Take a look at the contributor docs for creating libraries to learn more about creating libraries.

Examples

Syntax

registerAddon(library)

Parameters

library
Function: The library function to register
Notice any errors or typos? Please let us know. Please feel free to edit src/core/main.js and open a pull request!

Related References