For Lab 4, I wanted to create a paintbrush like experience where you can create psychedelic abstract air using only circle with random colors. I decided to use two potentiometers to control the size of the circle, and to toggle between a random color 'brush' and a black/white hue 'brush'. Alternating between these two 'brushes' allows for a mix of depth and the white and black erase and provide depth to the other colors. By controlling the size with the potentiometer, you are able to create long tailed 'blobs' and if you get really skillful you can create some pretty cool stuff. Circles are constantly being drawn in at the position of the mouse cursor so it's a continuous piece, but if you'd like to reset the canvas you can use the black and white 'brush' to effectively erase everything.
Arduino Code: https://gist.github.com/AlexWhaa/7d1616a532272e7e9239cc2e49b2fe34
p5 Code: https://gist.github.com/AlexWhaa/66ca86ed51d7c5546a2a014f84d24aa7
Schematic:
Comments