Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q1: Draw a drone [16] Draw a drone using the shapes that have been taught to you in the class. Figure 1 demonstrates the sample

Q1: Draw a drone [16] Draw a drone using the shapes that have been taught to you in the class. Figure 1 demonstrates the sample object. To complete Q1 your sketch should meet the following criteria: Draw a drone similar to, but not the same as, the one shown here.[2] Use a canvas size of 500 by 500. [1] Your drone must have at least: [1] o Some rectangles, ellipses, lines and triangles. o Make use of at least two additional colors other than black and white. The drone should have the following features o A main drone body part [1] o Four propellers [2] o Propeller mounts connected to the drone body [1] o Four circular (or semi-circular) propeller guards. [2] Use final named constants to set the size and position of the shapes that make up the drone. [1] Use the primitive data types int and float [3] At all times, your drone should be at the center of the canvas, and it should fill the entire canvas. [2] Note: This is a static Processing program (no setup or draw functions). Q2: Scalable and movable: Drone. [24] Modify your program Q1 to meet the following criteria: The cursor has to be in the center of your drone all the times, even when the drone is moving.[4] In the draw method, use both mouseX and mouseY so that, by moving your mouse, the ball moves in both the x-axis and y-axis freely.[5] Use a canvas size of 500 by 500. [1] Note: This is an active processing program (with setup and draw). [4] You should consider the SCALE in all your calculations so by changing this variable, the drone becomes smaller or bigger.[5] Use of following functions to help organize your code.[5] o drawBody(); o drawTopLeftProp(); o drawTopRightProp(); o drawBottomLeftProp(); o drawBottomRightProp(); For demonstration refer to video files A1Q2Scale1.mp4 and A1Q2Scale3.mp4

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

Database Development For Dummies

Authors: Allen G. Taylor

1st Edition

978-0764507526

More Books

Students also viewed these Databases questions