Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

10th Edition

0137916787, 978-0137916788

More Books

Students also viewed these Databases questions