Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please do it with Processing (programming language) Q4. Smart Phone Simulator. Write a program that achieves the following: Draws a smart phone box simulator with

Please do it with Processing (programming language)

image text in transcribed

Q4. Smart Phone Simulator. Write a program that achieves the following: Draws a smart phone box simulator with a home button. Draw a home button using an ellipse at the bottom of the simulator. When the home button is pressed and while the mouse button is kept pressed, o The color of the button should fade from white to black gradually. Once the color of the home button changes to black, three buttons should appear, shut down, restart and 911 call. Color the three buttons appropriately. Once the user clicks (not mouse press) on the shutdown button, o The color of the smart phone box should fade from white to black gradually. This gradual fade can be similar to the fade applied to the home button. Nothing happens when the Restart or 911 call buttons are pressed. This is to keep things simple in this question. To achieve curve at the corners of the rectangle, use the fifth parameter value of 20 or value close to it that you prefer works the best. Refer to the video file for illustration. Hint: To fade color from white to black, you could use timer. As the timer progresses by the second change the color accordingly. Power of Relart 011 cal O Q4. Smart Phone Simulator. Write a program that achieves the following: Draws a smart phone box simulator with a home button. Draw a home button using an ellipse at the bottom of the simulator. When the home button is pressed and while the mouse button is kept pressed, o The color of the button should fade from white to black gradually. Once the color of the home button changes to black, three buttons should appear, shut down, restart and 911 call. Color the three buttons appropriately. Once the user clicks (not mouse press) on the shutdown button, o The color of the smart phone box should fade from white to black gradually. This gradual fade can be similar to the fade applied to the home button. Nothing happens when the Restart or 911 call buttons are pressed. This is to keep things simple in this question. To achieve curve at the corners of the rectangle, use the fifth parameter value of 20 or value close to it that you prefer works the best. Refer to the video file for illustration. Hint: To fade color from white to black, you could use timer. As the timer progresses by the second change the color accordingly. Power of Relart 011 cal O

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

AutoCAD Database Connectivity

Authors: Scott McFarlane

1st Edition

0766816400, 978-0766816404

More Books

Students also viewed these Databases questions

Question

=+1 Where are the best places in the world to live (and work)?

Answered: 1 week ago

Question

=+Are you interested in working on global teams?

Answered: 1 week ago

Question

=+Do you want to work from home?

Answered: 1 week ago