Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

**PLEASE USE JAVA PROCESSING APPLICATION** THE FIRST PICTURE IS THE QUESTION AND THE SECOND PICTURE IS THE DESCRIPTION OF WHAT THE CODE SHOULD CONSISTS. **PLEASE

imageimage

**PLEASE USE JAVA PROCESSING APPLICATION**

THE FIRST PICTURE IS THE QUESTION AND THE SECOND PICTURE IS THE DESCRIPTION OF WHAT THE CODE SHOULD CONSISTS. 

**PLEASE USE JAVA PROCESSING APPLICATION**

Q1: Draw a Fidget Spinner that rotates with a constant speed. Draw a fidget spinner that looks similar to the one on the right. Use several colours of your own choice. You should use variables. Figure 1 demonstrates the spinner. To complete your sketch should meet the following criteria: Draw a fidget spinner similar to the one shown here but with different colours. Use a canvas size of 500 by 500. A Fidget spinner consists of four discs. One at the centre and three around the outside, just touching the centre one, at an angle of 120 degrees to each other. The Fidget spinner should have the following: A central disc which is in a solid color. Each outside disc should use 4 ellipses to give the appearance shown in Figure 1. Use final named constants to set the following Disc size (which also determines the spinner size) % Figure 1: Sample Fidget Spinner A speed value to control the rotation speed. Use the primitive data type float You are required to create the following functions setup() draw() drawSpinner() rotateSpinner() The Fidget spinner must be in the center of the canvas at all times. Watch the video COMP1010A2Q1.MP4 for an illustration.

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_2

Step: 3

blur-text-image_3

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

Accounting Information Systems

Authors: George H. Bodnar, William S. Hopwood

11th Edition

0132871939, 978-0132871938

More Books

Students also viewed these Programming questions