This video shows how to make a toggle button in p5.js using the TouchGui library and how to access whether the button is in the on or off position.
The TouchGui library was developed by Carlos "L05" Garcia
TouchGui documentation: https://github.com/L05/p5.touchgui
Sketch from this video: https://editor.p5js.org/mrbombmusic/s...
twitter: @mrbombmusic