Question
This programming language is Processing 3+. (fade in fade out drawing) help, please:/... really want to know or give me some examples to understand this
This programming language is Processing 3+. (fade in fade out drawing) help, please:/... really want to know
or give me some examples to understand this problem:3...
Basic setup (window size(500,200) , frameRate(10), background:black)
Draw the following three circles with the random colors generated.
Circle 1 (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 in the setup method. The intensity of a color is simply 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 will need to cast the arithmetic mean (float data type) to an integer.
Print the color values of the circle 1, 2, and 3 to the console. You will print 3 lines where the computed intensity value appear in each line.
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, i.e., draws a rectangle that covers the entire canvas with low transparency value in the draw method. 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started