Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is processing language in java. Please help.. Basic setup a. window size: (500, 200) b. frameRate: 10 c. background: black Generate random numbers for

This is processing language in java. Please help..

image text in transcribed

image text in transcribed

Basic setup a. window size: (500, 200) b. frameRate: 10 c. background: black Generate random numbers for the red, green, blue factor of the fill color of each circle (i.e., 3 float values for each circle). The range for the random numbers is 0 25 Draw the following three circles with the fill colors generated. a. Circle b. c. (center: (100, 100), W: 100, H: 100) Circle 2 (center: (250, 100), W: 100, H: 100) Circle 3 (center: (400, 100), W: 100, H: 100) Compute the intensity of the fill color of each circle. The intensity of a color is the arithmetic mean of the R, G, and B value of the color. We will use an integer value (0 255) for the intensity. So, you wil need to cast the arithmetic mean (float data type) to an integer . . Keep the circle with the maximum intensity on screen and make the other circles slowly faded out over time. You will use the fade-out trick that draws a rectangle that covers the entire canvas with low transparency value in the draw function. Note that it is possible to keep two or three circles when their intensity values are identical. The following figure shows that the left circle is kept on screen and the other two are being faded out

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 Design Application Development And Administration

Authors: Michael V. Mannino

3rd Edition

0071107010, 978-0071107013

More Books

Students also viewed these Databases questions

Question

Carry out an interview and review its success.

Answered: 1 week ago