Hi all, so I want to convert a 3d array to 1d so that I can use sort () function to get the top10 largest numbers, is there a way to do it in Processing?
So I understand how to use opacity +=1 to increase the opacity of the color, but what can I do to create a loop to decrease the opacity back to 30 when it hits 100, and then bring it back to 100 again? Do I have to use a boolean statement? How?
So I did two functions in my code, one is the thing moving in circular motion, another one is moving in a wave form. I don't want the alien1 function to redraw the background, but I do want the alien2 function does. But looks like they are always affecting each other. Any solutions? Thanks!!!!
Here is the code for one of my classes, it doesn't run and keeps telling me found one too many { characters without a } to match it...Maybe it's very obvious but i just cant tell...
I am creating an array of cells, what i want is once mousepressed, one cell becomes two, then each of the two cells becomes two , so the quantity of the cells doubles everytime you press the mouse. I want to use expand function to double the size of the array,
Here is my code(I have a cell class created already):
So I built this graphic and did a spinning effect for multiple rectangles, but the positions of the rectangles seem to change when you press mouse to see the spinning effect. I can't figure out what went wrong with it... Can someone help me with it? Thank you!!!
So I am starting a project that basically pulls out some random letters from A-Z and generates a word(doesn't have to be a real word) everytime you press key. But I have had a hard time starting coding, can anyone help me with some ideas what methods would work best? Thanks!!!