Research Post 5

The GUI library for p5.js is a library by Martin Schneider designed to add a GUI with items that the user can interact with to adjust elements of an image to a processing code. GUI items that this library can add include sliders, text bars, and drop down menus. These items can be interacted with to change elements including but not limited to form, color, and position.

A GUI is created with the createGui() function. To add items to theGUI, the gui.addGlobals() function is used.

An example of a work done with this library would be this sketch of pac man created by Martin Schneider himself. In this work, the user can change the color of pac man with a color wheel and the size of pac man’s mouth with a slider.

Library: https://github.com/bitcraftlab/p5.gui

Example: https://bitcraftlab.github.io/p5.gui/examples/pacman/