Answered step by step
Verified Expert Solution
Question
1 Approved Answer
ASSIGNMENT 1 COURSE NUMBER: COMP 1 0 1 0 Q 1 : Draw a Helicopter [ 1 2 Marks ] Draw a helicopter using the
ASSIGNMENT COURSE NUMBER: COMP Q: Draw a Helicopter Marks Draw a helicopter using the shapes that have been taught to you in the class. Figure demonstrates the sample object. To complete Q your sketch should meet the following criteria: Draw a helicopter similar to but not the same as the one shown here. Use a canvas size of by Your helicopter must have at least: o One rectangle, ellipse, line and triangle. o Make use of at least two additional colors other than black and white. o Note: Sample drawing and video has not been given any color. Use your creativity! The helicopter should have the features as explained in Figure o Cockpit and Cockpit Windows o Fuselage o Blades o Main Rotor and Engine Cover o Sync Elevator, Elevator Tail and Elevator Deval o Tail Boom and Tail fin. Use final named constants to set the size and position of the shapes that make up the helicopter. At all times, your helicopter should be at the center of the canvas, and it should fill the entire canvas. Note: This is a static Processing program no setup or draw functions Tail Fin Blades Main Rotor Engine Cover CockPit CockPit Windows Fuselage Sync Elevator Tail Boom Elevator Tail Elevator Decal ASSIGNMENT COURSE NUMBER: COMP Q: Scalable and movable. Marks Modify your program Q to meet the following criteria: Use a canvas size of by The cursor has to be in the center of your main rotor all the times, even when the helicopter is moving. Change constant SCALE to a variable scale for this question. Consider scale in all your calculations so by changing this variable, the helicopter becomes smaller or bigger. Requirement is that changing the value of scale changes the scale of the drawing appropriately. Use of following functions to help organize your code. o cockPit; o elevator; o tailBoom; o bladeAndRotor; o Note: Create your own functions as and when needed. Please explain the purpose of the functions using comments. Note: This is an active processing program with setup and draw Q: Scalable based on mouse position Marks Modify Q to meet the following criteria: Change value of scale based on the position of the mouse on the x axis. The helicopter is the smallest when the mouse pointer is at the left of the canvas. The helicopter is the largest when the mouse pointer is at the right of canvas. Note: There is a possibility that the entire helicopter may not be visible after this change and that is OK Create a new function for the requirement. Hint: You will need to use the scaling problem equation to solve this problem. Even though, the formula is easily searchable, equation is provided in Lecture Notes Week Slide
ASSIGNMENT
COURSE NUMBER: COMP
Q: Draw a Helicopter Marks
Draw a helicopter using the shapes that have been taught to you in the class. Figure demonstrates the sample object. To complete Q your sketch should meet the following criteria:
Draw a helicopter similar to but not the same as the one shown here.
Use a canvas size of by
Your helicopter must have at least:
o One rectangle, ellipse, line and triangle.
o Make use of at least two additional colors other than black and white. o Note: Sample drawing and video has not been given any color. Use your creativity!
The helicopter should have the features as explained in Figure
o Cockpit and Cockpit Windows
o Fuselage
o Blades
o Main Rotor and Engine Cover
o Sync Elevator, Elevator Tail and Elevator Deval
o Tail Boom and Tail fin.
Use final named constants to set the size and position of the shapes that make up the helicopter.
At all times, your helicopter should be at the center of the canvas, and it should fill the entire canvas. Note: This is a static Processing program no setup or draw functions
Tail Fin
Blades
Main Rotor
Engine Cover
CockPit
CockPit Windows
Fuselage
Sync Elevator
Tail Boom
Elevator Tail
Elevator Decal
ASSIGNMENT
COURSE NUMBER: COMP
Q: Scalable and movable. Marks
Modify your program Q to meet the following criteria:
Use a canvas size of by
The cursor has to be in the center of your main rotor all the times, even when the helicopter is moving.
Change constant SCALE to a variable scale for this question. Consider scale in all your calculations so by changing this variable, the helicopter becomes smaller or bigger. Requirement is that changing the value of scale changes the scale of the drawing appropriately.
Use of following functions to help organize your code.
o cockPit;
o elevator;
o tailBoom;
o bladeAndRotor;
o Note: Create your own functions as and when needed. Please explain the purpose of the functions using comments. Note: This is an active processing program with setup and draw
Q: Scalable based on mouse position Marks
Modify Q to meet the following criteria:
Change value of scale based on the position of the mouse on the x axis. The helicopter is the smallest when the mouse pointer is at the left of the canvas. The helicopter is the largest when the mouse pointer is at the right of canvas. Note: There is a possibility that the entire helicopter may not be visible after this change and that is OK
Create a new function for the requirement.
Hint: You will need to use the scaling problem equation to solve this problem. Even though, the formula is easily searchable, equation is provided in Lecture Notes Week Slide
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