Detect the mouse position, mouse clicked, and keyboard keys to affect the things displayed in your Processing sketch.
Before starting this tutorial, you should be familiar with the topics covered in these previous videos:
Install Processing - • [Beginner] Java and Processing: Getting St...
Variables, Conditionals, Shapes, Color - • [Beginner] Java and Processing: Variables,...
Motion and Animation - • [Beginner] Java and Processing: Motion and...