Question: Implementing as many variables as needed to replace all static numbers in the ellipse and rect functions of this program. Note that some variables can
Implementing as many variables as needed to replace all static numbers in the ellipse and rect functions of this program.
Note that some variables can be reused multiple times.
Also use meaningful variable names
// A simple drawing of circles and squares
void setup() { size(600, 400); }// end of setup
void draw() { background(255); stroke(0); fill(175); rectMode(CENTER); rect(300,100,50,50); rect(300,200,50,50); rect(300,300,50,50); ellipse(200, 200, 50, 50); ellipse(300, 200, 50, 50); ellipse(400, 200, 50, 50);
}// end of draw
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
