Oct 07
Paintbrush in Processing
Fundamentals of Physical Computing
Lab Five: Processing, part 5: create a Paintbrush in Processing
- Set your screen size to 400 x 600.
- Create two or more shapes that make a pattern.
- Use the mouseX and mouseY variables for one of the coordinates of each shape
- Make the other coordinates relative to mouseX and mouseY by using a statement for each coordinate such as mouseX+37
- Run your program
- Moving the mouse around should create trails like a paint brush. If it doesn’t perhaps you used the background() command in your draw loop. That would clear the screen at each step. Put it in setup instead, so the background is drawn only once.