Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please do it with Processing (programming language) Q3. Use of input box use of text and draw text. Write a program that does the following:
Please do it with Processing (programming language)
Q3. Use of input box use of text and draw text. Write a program that does the following: Assume the canvas size of 500X500. The program asks the user to enter any text using the JOptionPane dialog box. The program then draws the text in a circular formation such that: Each character of the text is always at an equal distance from the center of the circular formation. Each character of the text is at equal angle from one another. o It does not matter which angle the first character is at. o Assume the center of this formation is at the center of the canvas. Program should draw the text following the above criteria irrespective of the length of the text. When the mouse is pressed in within the circular formation, the radius of the circular formation should increase. That is, each of the characters should start moving away from the center of the circular formation. The character should move out till they reach the end of the canvas (approximately). One the mouse released, the characters should start moving back to the original location till they reach their original location. This process should repeat every time the mouse is clicked on the circular formation. Refer to the video file for illustration. Hint: import javax.swing.JOptionPane; JOptionPane.showInput Dialog("") 1 0 0 1 PO MStep 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