that wasn’t hard, try this;
// the draw() function is called many times per second
// it's very useful for animating objects
// notice the opening and closing of curly braces
// everything in between them is run many times per second
void draw() {
// background() erases the screen with a colour
background(255, 204, 0);
line( random(100),random(100), random(100),random(100) );
}
Leave a Reply