int x = 800;
void setup() {
size (800, 200);
background (214, 210, 196);
noStroke();
fill (166, 25, 46);
rect (0, 0, 115, 200);
}
void draw() {
background (214, 210, 196);
fill (166, 25, 46);
rect (0, 0, 115, 200);
fill (55, 58, 54);
ellipse (x, 100, 100, 100);
x = (x - 1);
}
That’s what I have done for now. What I need to do now is to write a program as I said in the red part to the left. I know “random” and “void keyPressed” would do but do not know how to apply to this case.Preformatted text