Answered step by step
Verified Expert Solution
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
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
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