We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi, I have been using Max Msp for 18 months now and immediately got the programming bug......
I discovered Processing after buying an Arduino, and set about to teach myself through books/tutorials.
I simply want to know why this code doesn't do what i expected it to;
// simple test, squares getting bigger coming from top left of window
size(500, 500);
rect(10, 10, 10, 10);
rect(10, 10, 20, 20);
rect(10, 10, 30, 30);
rect(10, 10, 40, 40);
rect(10, 10, 50, 50);
Instead of 5 squares, each one getting bigger, coming from the same point; 10 pixels in and ten down.... it just makes a square of the last size
thankyou for your time
peace
Danny
Answers
each rectangle is being filled with white, overwriting the previous rectangle.
use
noFill();
aha....... Thankyou, much appreciated :)
i will experiment with where