Use your Notebook/Notability.
rect() functions, code the four rectangles below.
Assume this square is like our graph paper and is a 400×400 grid with (0,0) in the upper left corner.
Every line of code gets it’s own line on the paper.
Comment each line of code // and tell me either the color or which rectangle you are coding.
Because the computer remembers what you tell it, you are allowed to code for white ONE time and then put the two white RECT codes below your fill white. Write neatly and submit your code when you are done. You may write it out on paper and take a photo and submit the photo.
fill( , , );//name the color
rect( , , , );//identify which rect you’re coding… top left, bottom right, etc.
Go back to: Color