I'm making a program where I can make pictures using circles. I've got the duplicating of the circles down packed using the left click, but I want to remove them when I right click on the circles. Below I've got the code there to create them using the left mouse click but I'm not sure what code I would put in there to remove them, help?
So I've made a grid in processing using the rect() function and I want to be able to move through the grid using the arrow keys and I'm not quite sure how to do it.
I want to start with one square coloured in and when I press an arrow key the square in that direction takes on that colour. For instance in a 10x10 grid, the cell in topmost left corner starts out blue, and when you press the down arrow key, the cell below turns blue (whilst the original cell loses its colour, becomes like every other cell in the grid)
The code I have so far is:
float cellSize = 30; //size of each square in cell
Hey guys, I've been playing around with processing trying to get a particular effect to happen. I know that I can change the colour of a shape with a mouse click, key press ect. but I want it to do a fade effect. For instance every time I click I want a white rectangle to appear, and then fade to green. Is there a simple way to do this?