Question: Write code that fulfills these requirements. Code needs to work in P5.js program (java). Some details about that image: - The canvas is 400400 -

 Write code that fulfills these requirements. Code needs to work in

Write code that fulfills these requirements. Code needs to work in P5.js program (java).

Some details about that image: - The canvas is 400400 - The background is teal - The face/drop loop repeats 50 times, each time drawing one ellipse (so 50 total ellipses). - The first time, it starts at the top center of the canvas, with a fill color of (0,0,255) - Each time through the loop the following changes happen - The red portion of the fill color is increased by 3 - The blue portion of the fill color is decreased by 3 - The size of the ellipse increases by 2 pixels - The y-position of the ellipse increases by 5 pixels - Once all 50 of the stack of ellipses has been drawn with the loop, then the face is drawn onto the final ellipse normally (without a loop). - Finally, there are 3 separate loops to draw the stacks of lines on the left, top, and bottom of the canvas: - Each stack of lines consists of 25 lines where the lines are 3 pixels apart - The stroke width for these lines are all 1 pixel wide

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!