Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Additional Info: HAS TO BE DONE IN THE APPLICATION CALLED PROCESSING.ORG. Additional Info: HAS TO BE DONE IN THE APPLICATION CALLED PROCESSING.ORG. 4. Draw 5

Additional Info: HAS TO BE DONE IN THE APPLICATION CALLED "PROCESSING.ORG".image text in transcribedAdditional Info: HAS TO BE DONE IN THE APPLICATION CALLED "PROCESSING.ORG".

4. Draw 5 circles: Draw a canvas of size 600 x 400. Draw 5 circles (ellipses) in a horizontal row, beginning at point (100, 200), with each circle of size 75 pixels, each circle a different fill color, and each circle separated from one another by 25 pixels (i.e., points (100, 200); (200, 200); (300, 200); (400, 200); and (500, 200)). Save your code and image (.JPG format) with file name 44-5_circles-lastname'. 5. Draw 5 orange circles using a repeating For loop: Draw a canvas of size 600 x 400. Repeat activity 4, except this time use a repeating For loop in your code and only one ellipse command. Make all circles the same color of orange. Save your code and image (.JPG format) with file name -45-5_circles+for_loop-lastname'. 6. Draw 50 colored squares using a repeating For loop: Draw a canvas of size 800 x 600. Draw 50 colored squares of random position (random x, random y), random size, and random color (random R, G, and B values). Use a repeating For loop in your code and only one rectangle' command. Use integer (int) variables posX, posy, siz, Rvalue, Gvalue, and Bvalue, along with the random (x,y) function to create and store random square positions, sizes and colors before displaying each square. Save your code and image (.JPG format) with file name 46-50_squares-lastname'. 7. Draw the Solar System: Draw a canvas of size 800 x 600 with a black background color. Using the details provided on the following page (i.e., relative planet sizes and distances from the Sun), draw an approximation of the solar system (Sun + 8 planets as circles, in a horizontal line, as shown below). Use three 9-element arrays to store display data (size, color, and distance from the Sun). Decide on a starting (x,y) position for the Sun, and then use a For loop to display the nine entities. Save your code and image (.JPG format) with file name 47-solar_system-lastname'. 4. Draw 5 circles: Draw a canvas of size 600 x 400. Draw 5 circles (ellipses) in a horizontal row, beginning at point (100, 200), with each circle of size 75 pixels, each circle a different fill color, and each circle separated from one another by 25 pixels (i.e., points (100, 200); (200, 200); (300, 200); (400, 200); and (500, 200)). Save your code and image (.JPG format) with file name 44-5_circles-lastname'. 5. Draw 5 orange circles using a repeating For loop: Draw a canvas of size 600 x 400. Repeat activity 4, except this time use a repeating For loop in your code and only one ellipse command. Make all circles the same color of orange. Save your code and image (.JPG format) with file name -45-5_circles+for_loop-lastname'. 6. Draw 50 colored squares using a repeating For loop: Draw a canvas of size 800 x 600. Draw 50 colored squares of random position (random x, random y), random size, and random color (random R, G, and B values). Use a repeating For loop in your code and only one rectangle' command. Use integer (int) variables posX, posy, siz, Rvalue, Gvalue, and Bvalue, along with the random (x,y) function to create and store random square positions, sizes and colors before displaying each square. Save your code and image (.JPG format) with file name 46-50_squares-lastname'. 7. Draw the Solar System: Draw a canvas of size 800 x 600 with a black background color. Using the details provided on the following page (i.e., relative planet sizes and distances from the Sun), draw an approximation of the solar system (Sun + 8 planets as circles, in a horizontal line, as shown below). Use three 9-element arrays to store display data (size, color, and distance from the Sun). Decide on a starting (x,y) position for the Sun, and then use a For loop to display the nine entities. Save your code and image (.JPG format) with file name 47-solar_system-lastname

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

How To Make A Database In Historical Studies

Authors: Tiago Luis Gil

1st Edition

3030782409, 978-3030782405

More Books

Students also viewed these Databases questions

Question

What elements make up the promotions mix?

Answered: 1 week ago

Question

When would you use one approach, and when would you use another?

Answered: 1 week ago

Question

3. How would this philosophy fit in your organization?

Answered: 1 week ago