This post is about an individual exercise I have to do for Processing at school. However, I can't seem to work it out after several tries. They seem rather simple for those who get Processing. I can't seem to find a good start though.
If someone could lend me a hand on doing these or finding the right functions I need, many thanks! Due to personal problems I haven't had time to do these so I've got to finish them before tonight. If anyone could help me, or create them for me and tell me how they've done it, this would extremely help me!!!
Here are the three exercices (they're originally written in dutch so please say so if I'm not clear in my explanation):
Create a program that has a function that gives an output that exists out of the first ten numbers of the math table.
For example: if you input the number 3. The output will be the table of three (1x3, 2x3, 3x3, 4x3 etc.).
Create a program that consists out of a new image (PImage) with the size of 200 x 200 pixels, which gets automatically colorized with a random color for each pixel. It has to have a dark gray background that isn't visible cause of the colorized randomness.
There are tips given for this exercise which I don't get:
Tip 1: Use a FOR-loop to input the colorvalue per pixel. It has be linked to the length of the pixel array of the image (image.pixels.length)
Tip 2: Use loadPixels and updatePixels.
Create a program that consists out of a new image (PImage) with the size of 200 x 200 pixels, which, before it is being shown on the screen, gets colorized entirely white. Each time that the mouse cursor goes over a pixel in this image, this pixel has to become darker untill it's black. If the pixel is entirely black, the sketch becomes entirely white again, so the program "restarts".
I kinda understand why I needed to use mouse X & Y.
Was working with them/figurring them out and then I saw your post :)
Only thing I need now is the "click to reset the picture to the mixed colors screen" part and then I'm finally done with B. :) After that I'm gonna try A. And then the hardest one, C which is kinda the opposite of B so I should be able to get alot of code out of B. :)
But that only does the table of 3.. And as you can see in the beginning of the post.. I need to have all math tables -.- I've got no clue how to start looping.. Did several other tries at that, got them saved as well, need me to show those too?
*edit, I tried it with 3 but this doesn't work as it should too :-/
Haha lol. I'm 20, I'll decide wether or not I'm gonna sleep haha. I can't go to bed... Since you don't live in the Netherlands and I won't be able to get any help from anyone on this forum during the day tomorrow (since it'll be night at your place) haha. And there's no one that can help me out here.. Besides, my deadline's Thursday which is way to fast. When I finish C I need to finish another giant Processing concept I created & need to finish tomorrow. Normally we do these assignments with four people.. But my 3 teammates failed their tests and had to leave the school/quit their study. So I've got to finish it myself. It's a project where I need to get rotation on screen by using two colored fingers in front of my webcam.. Long story.. First I need to finish C and then I might ask you to help me again (if you'd like) with that code (I already wrote a giant code for that).
PS: I've been doing processing for so long today (the entire day) that I am kinda crazy at this very moment, haha.
And sometimes I don't dare to ask too much.. So yeah.. what's the -48?