In the following command...these two values establish the center of the circle:
ellipse(100,150,50,50)
What are 100 and 150? These are the x and y coordinates, respectively.
This is the color generated by this code:
fill(0,0,0);
What is black?
This section of code has one syntax error in the method definition for a Processing program.
void setup();
{
size(600,400);
background(121,52,255);
drawWater();
drawBoat(200,185);
drawBoat(350,300);
} //end setup
What is
(;) Semi-colons should not follow the method header.
[This terminates the definition of the method permaturely, before the code has been written for it!]
These are the coordinates for Point A:
What is 200,100?
This is the name of the Chapel.
What is the Esmond Brady Chapel?
From the left side to the right side, this is how wide is the circle (the diameter) generated by the following code:
ellipse(100,150,50,50);
What is 100 units?
This is the color generated by this code:
fill(255,255,255);
What is White?
This section of code intending to draw a fish has an error.
void drawFish(int x, int y)
{
ellipse(x,y,100,100);
triangle(x-50,y,x-100,y-50);
ellipse(x+30,y-20,10,10);
}
What is an improper call to the triangle method?
[The triangle() method requires three points to complete its call and the programmer only provided two points.]
These are the coordinates for Point B.
What is 200,200?
This is the name of the stadium where we play football and have track and field events.
What is Hughes Spalding Stadium?
This is the height (in units) of the rectangle generated by the following code:
rect(100,100,100,50);
What is 50?
This is the color generated by this code:
fill(0,0,255);
What is Blue?
This method does not create the intended visualization of circles. It has a flaw.
void drawClouds(int x, int y)
{
ellipse(x-30,y-10,20,20);
ellipse(x+30,y+10,30,30);
ellipse(x+50,y-50,40,40);
ellipse(x-50,y+50,50,50);
ellipse(x,y,200,200);
}
What is "the order of the commands is logically incorrect".
[The last statement should be drawn first.]
These are the coordinates for Point C.
What are 300,100?
The soccer field is named for this former soccer coach at Marist.
Who is Sergio Stadler (Stadler Field)?
When we coded our fish, we used these two shape commands in Processing.
What are ellipse and triangle?
This is the color generated by this code:
fill(255,0,0)
What is red?
The following method was designed to display a boat anywhere on a screen. There is a flaw.
void drawBoat(int x, int y)
{
fill(200,246,237);
triangle(135,35,170,0,170,35);
fill(234,172,36);
rect(170,0,10,65);
fill(0,255,0);
quad(100,50,125,75,175,75,200,50);
}
What is "not using parameters"?
The programmer did not use the parameters (x,y) in their calls to shape commands.
[By only using specific numbers, the programmer only coded one possible display position for the boat.]
Write the code needed to generate Square ABCD.
What is:
rect(200,100,100,100);?
This is the name of the former (late) basketball coach for whom the basketball court is named?
Who is Ron Bell? (Ron Bell Court).
Using the following code, how wide would our boat be (from the farthest point on the left to the farthest point on the right)?
quad(200,100,220,200,280,200,300,100);
What is 100? The largest difference in width is between the point (200,100) and (300,100).
This is the color generated by this code:
fill(255,0,255)?
What is purple?
The following two commands are intended to produce the same shape on the canvas. There is a flaw.
rect(x+70, y-50, 10, 65);
quad(x+70, y-50, x+90, y-50, x+90, y+15, x+70, y+15);
What are incorrect dimensions?
[Option 1: change rect width to be 20.]
[Option 2: change the expression x+90 to be x+80. (Both occurrences of the expression x+90.)]
If we needed to move square ABCD down 50 points on the y axis, while maintaining where it is on the x axis, and maintaining its current shape/size this is the revised code.
What is
rect(200,150,100,100); ?
The baseball fields are named for this long time (late) baseball coach at Marist School.
Who is Jerry Queen?