Watch Fun Programming [video 22]
Here’s a program I wrote:
float x_value;
void setup()
{
size(400,200);
background(0);
stroke(255);
frameRate(2);
noFill();
}
void draw()
{
x_value = (x_value+61) % 400;
rect(x_value, 100, 50, 50);
}
Change the program so the old rectangle fades away as you draw new ones
Show a mentor, mark the board and get a prize.