Draw a spacehship using the shapes that have been taught to you in the class. Figure...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Draw a spacehship 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: Use a canvas size of 500 by 500. [1] A101 Your spaceship must have at least: [2] Some rectangles, ellipses, lines, triangles and or arc. Make use of at least two additional colors other than black and white. The spaceship should have the following features Spaceship capsule [1] Spaceship body [1] O Spaceship base [1] 0 Landing pads and connecting poles. [2] Use final named constants to set the size and position of the shapes that make up the ship. [1] Use the primitive data types int and float [3] Your ship should be at the center of the canvas, approximately. This depends on what you chose as reference point of your drawing. In the example, center of the spaceship body is the center of reference. [1] Draw a spaceship similar to, but not the same as, the one shown here.[2] Note: This is a static Processing program (no setup or draw functions). Activate Windows Go to Settings to actuat Q1b: Draw Stars [10] Modify your program in Q1a to add stars to the drawing. This will create an impression of the spaceship in the outer space. Make use of two triangles to draw the star. Draw at least 10 such stars on your drawing. Allow different locations to each star so they are drawn evenly on the drawing. Notice repeat of code to draw stars. You will be taught how to reduce this repetition in coming lectures. Note: Q1 is now complete. Submit it on moodle. Q2: Movable: Spaceship. [15] Modify your program Q1b to meet the following criteria: This is an active processing program (with setup and draw). [4] The cursor has to be in the center of your ship approximately all the times. As explained in Q1, center in the example is the center of the ship body. [4] A1Q1 In the draw method, use both mouseX and mouseY so that, by moving your mouse, the ship moves in both the x-axis and y-axis freely.[4] Use a canvas size of 500 by 500. [1] Use of following functions to help organize your code. [2] O drawStars(); o drawBody(); Draw a spacehship 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: Use a canvas size of 500 by 500. [1] A101 Your spaceship must have at least: [2] Some rectangles, ellipses, lines, triangles and or arc. Make use of at least two additional colors other than black and white. The spaceship should have the following features Spaceship capsule [1] Spaceship body [1] O Spaceship base [1] 0 Landing pads and connecting poles. [2] Use final named constants to set the size and position of the shapes that make up the ship. [1] Use the primitive data types int and float [3] Your ship should be at the center of the canvas, approximately. This depends on what you chose as reference point of your drawing. In the example, center of the spaceship body is the center of reference. [1] Draw a spaceship similar to, but not the same as, the one shown here.[2] Note: This is a static Processing program (no setup or draw functions). Activate Windows Go to Settings to actuat Q1b: Draw Stars [10] Modify your program in Q1a to add stars to the drawing. This will create an impression of the spaceship in the outer space. Make use of two triangles to draw the star. Draw at least 10 such stars on your drawing. Allow different locations to each star so they are drawn evenly on the drawing. Notice repeat of code to draw stars. You will be taught how to reduce this repetition in coming lectures. Note: Q1 is now complete. Submit it on moodle. Q2: Movable: Spaceship. [15] Modify your program Q1b to meet the following criteria: This is an active processing program (with setup and draw). [4] The cursor has to be in the center of your ship approximately all the times. As explained in Q1, center in the example is the center of the ship body. [4] A1Q1 In the draw method, use both mouseX and mouseY so that, by moving your mouse, the ship moves in both the x-axis and y-axis freely.[4] Use a canvas size of 500 by 500. [1] Use of following functions to help organize your code. [2] O drawStars(); o drawBody();
Expert Answer:
Related Book For
Database Systems Design Implementation and Management
ISBN: 978-1337627900
13th edition
Authors: Carlos Coronel, Steven Morris
Posted Date:
Students also viewed these programming questions
-
Draw a Helicopter Draw a helicopter 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:...
-
Find a harmonic function (x, y) in the right-half plane x > -1 such that on the boundary (-1, y) = 0, y
-
Is the preparation of expatriates more important than their repatriation? Explain fully. Both are equally important.
-
Apply the McLaren's order moment (MOM) lot-sizing procedure to the following 12 periods of requirements data, indicating order receipts' size and period. Assume order costs are $100/order placed and...
-
Identify the relationships that may be used in making an analytical review of property, plant, and equipment. For each relationship indicate the type of fluctuation that might occur and the cause...
-
What should Mr. Rutland do? Include the following issues: Budget: acquiring adequate resources Philanthropic organizations Governmental agencies Donations Memberships Visitors Budget:...
-
In the figure, point P lies at a distance of R up the perpendicular bisector of a uniformly charged insulating rod of length L. The rod's diameter is negligible compared to its length. Find the...
-
The trial balance for Sharmar for the period ended 31.03.03 before making year-end adjustments is as follows: The following matters have not been taken into account when preparing the above trial...
-
Write up your personal opinion about on organizations morals and values. For example, there are cases when individuals are often confronted with scenarios that could challenge their values and...
-
List the various types of dynamometers.
-
What are the various types of flat belt drives?
-
What are the power transmission elements?
-
List various types of gears.
-
What are the various types of shafts?
-
Why do you think inventory management has such an impact on the financial stability of a company? Describe techniques that can be used to better control inventory.
-
Identify the most stable compound:
-
A binary liquid mixture consists of \(60 \mathrm{~mol}\) per cent ethylene and \(40 \mathrm{~mol}\) per cent propylene. At \(423 \mathrm{~K}\), the vapour pressure of ethylene and propylene are...
-
Deduce the Gibbs-Duhem-Margules equation for a binary solution starting from Raoult's law.
-
The vapour pressure of acetone, acetonitrile and nitromethane can be represented by Antoine equations as \[ \begin{aligned} & \ln P_{1}^{\text {Sat }}=14.3916-\frac{2795.82}{T+230.0} \\ & \ln...
Study smarter with the SolutionInn App