Okay so first off...I am horrible at programming. Just getting that out now. This is my first semester programming anything...ever. Okay so I have this sketch consisting of 10 bubbles/balls bouncing off each other and off the screen. I wanted to know how I would code it so that when I click on one any the bubbles with my cursor, they just disappear, like i popped them. sounds simple but I have no idea where to start. Here is my code:
I'm just starting to learn processing, taking my first course this semester. Just wanted to know how to make a gradient for the background. I only see tutorials regarding how to make gradients in ellipses, rects, and so on.
I'm working on my first interactive sketch, Currently I have an animated bubble moving across the screen and bouncing off the edges. I want to loop them (maybe have about 10?) and randomize them. I also want to be able to grab them with my cursor and move them around. If anyone can help I'd greatly appreciate it. Code is below.
I'm making a simple drawing application, currently I can click and draw lines and i have drawn my color palettes (just ellipses). I want to know how I can get the cursor to click on them so it will change the color of the line accordingly. If anyone can help I'd greatly appreciate it. Code is below.