Help needed with these questions
in
Programming Questions
•
2 years ago
Hi all I am new to this forum and new to processing software. I need to perform two tasks:
Part One: Concentric Circles
Your program should use a window that is 400 by 400 pixels in size. The background
should be white. Initially, the window should be empty. When the user clicks the mouse
button, a series of concentric circles will be drawn under the mouse click position. There
should be 4 circles which grow in size and where the first is the largest, the second slightly
smaller, etc.
Part Two: Improving the Realism
Extends the program to add more realism to the animation and the ripples.
Instead of growing indefinitely, the ripples must stop animating before they
have a diameter of 200 pixels. The animation of the ripples cannot be continuous, it must
run once for each mouse click with the ripples expanding and then going away when they
get too big. You must demonstrate this with some console output to show that animation
has stopped. Later ripples must be drawn with a smaller pen width than earlier ripples. As
ripples grow from the central click location they should fade away so that they are invisible
before they reach the size at which animation stops (200 pixels).
Please provide me solution to these questions. Your help will be highly appreciated
thanks in advance
1