Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use processing to write a code to draw a drone in the pic below with the following questions in the picture Q1: Draw a drone

Use processing to write a code to draw a drone in the pic below with the following questions in the picture image text in transcribed
Q1: Draw a drone a yOraw a drone similar to the one shown in the picture b) Use canvas size 500 by 500 c) The drone must have at least some rectangles,ellipses lines and triangles The drone should have the following features: a main body part propeller mounts connected to the drone body four circularisemi-circular) propeller guards Use final names constants to set the size and position of shapes that make up the drone e) Use primitive data types int and float At all times drone should be at the center of the canvas and it should fill the entire canvas Q2: Scalable and movable drone (a) The cursor has to be in the center of the drone at all times, even when drone is moving b) In the draw method, use both mousex and mouseY so that by moving your mouse, the ball moves in both x-axis and y-axis freely C)Use a canvas size 500 by 500 Consider the SCALE in all calculations so by changing this variable, the drone becomes smaller or bigger Use the following functions to help organize the code. drawBodyo drawTopLeftPropo: draw TopRightPropo drawBott Q1: Draw a drone a yOraw a drone similar to the one shown in the picture b) Use canvas size 500 by 500 c) The drone must have at least some rectangles,ellipses lines and triangles The drone should have the following features: a main body part propeller mounts connected to the drone body four circularisemi-circular) propeller guards Use final names constants to set the size and position of shapes that make up the drone e) Use primitive data types int and float At all times drone should be at the center of the canvas and it should fill the entire canvas Q2: Scalable and movable drone (a) The cursor has to be in the center of the drone at all times, even when drone is moving b) In the draw method, use both mousex and mouseY so that by moving your mouse, the ball moves in both x-axis and y-axis freely C)Use a canvas size 500 by 500 Consider the SCALE in all calculations so by changing this variable, the drone becomes smaller or bigger Use the following functions to help organize the code. drawBodyo drawTopLeftPropo: draw TopRightPropo drawBott

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions