Develop a simple canvas animation of your own design

Assignment Help Other Engineering
Reference no: EM13859760

Assignment Brief:

Develop HTML 5 and JavaScript code to create a vector graphic using HTML 5 Canvas methods such as:

• beginPath()
• closePath()
• rect()
• arc()
• stroke()
• moveTo()
• lineTo()
• fill()
• ...

Using these methods you will need to draw lines, rectangles, circles, and semi-circles to create a vector graphic of your design. Check your design with your lecturer drawing it using canvas to ensure you meet the requirements.

Note: that when drawing the vector shapes you should use different coordinatevariables (var variableName; in JavaScript) to make it easier to keep track of where all the different rectangles, lines and arcs should be placed. For example, it would be wise to keep track of the size of the square with a JavaScript variable such as:

var side = 200; // define size of square

var xpos = centerx - side /2;// defxpos for square
var ypos = centery - side /2; // def ypos for square

ctx.rect(xpos, ypos , side,side); // create the square path

ctx.strokeStyle="#FF0000"; // set colour to red
ctx.stroke(); // draw the path to the canvas

Part A: HTML 5 Canvas Drawing 20%

1. Create a number of shapes and lines which will form an image. Use variables to keep track of things likes position, size, and how diferent objects are offset (different from each other).

Part B:Challenge Questions 10%

1. Develop a simple canvas animation of your own design. For example, you could rotate the four smaller solid circles around the red hollow circle using trigonometry (sin and cos)to locate the x,y coordinates of the circles at different angles. Check that your animation is of an appropriate difficulty level with your lecturer before submitting the assignment.

2. Use Canvas EventListeners to enable user interaction. For example, a user could spin thecanvas image using their mouse, buttons and mousedown/ mousemoveevents.

Reference no: EM13859760

Questions Cloud

What do you think are the main reasons for the trend : What do you think are the main reasons for the trend toward "managing by the numbers," as discussed in the case? Do you believe that this is happening in many organizations, or is it an isolated phenomenon?
Find the bid price and derive the production schedule : The contractor can deliver only completed units and is paid the following month. Profit is set at 10 percent of the bid price. Find the bid price, derive the production schedule, and calculate the cash flow schedule.
What is the role of the manager in an organization? : What is the role of the manager in an organization?
Develop a model that can be used to schedule production : Develop a model that can be used to schedule production for The Mill, and at the same time, determine how many yards of each fabric must be purchased from another mill.
Develop a simple canvas animation of your own design : Develop a simple canvas animation of your own design. For example, you could rotate the four smaller solid circles around the red hollow circle using trigonometry (sin and cos)to locate the x,y coordinates of the circles at different angles.
Assumed rate of inflation : Using the assumed rate of inflation,what is the annual amount drawn the first year, (solution b) worth today? Comment on your client's ability to live on this amount in retirement
How has technology changed the way : How has technology changed the way in which the manager defines how tasks are performed and completed within the organizational structure? What happens to structure when the walls are missing? How do the tasks get complete and by whom?
How would you incorporate these into your working life : In a brief 1-2 paragraph reflection, explain why a professional organization had a policy such as this. How would you incorporate these into your working life
Create a complete hi-fidelity prototype using fluid-ui : Create an application that demonstrates competence at using lists and create a sketch, and refine it further to create a hi-fi prototype. Undertake a heuristic usability on this hi-fi prototype.

Reviews

Write a Review

Other Engineering Questions & Answers

  Characterization technology for nanomaterials

Calculate the reciprocal lattice of the body-centred cubic and Show that the reciprocal of the face-centred cubic (fcc) structure is itself a bcc structure.

  Calculate the gasoline savings

How much gasoline do vehicles with the following fuel efficiencies consume in one year? Calculate the gasoline savings, in gallons per year, created by the following two options. Show all your work, and draw boxes around your answers.

  Design and modelling of adsorption chromatography

Design and modelling of adsorption chromatography based on isotherm data

  Application of mechatronics engineering

Write an essay on Application of Mechatronics Engineering

  Growth chracteristics of the organism

To examine the relationship between fermenter design and operating conditions, oxygen transfer capability and microbial growth.

  Block diagram, system performance and responses

Questions based on Block Diagram, System Performance and Responses.

  Explain the difference in a technical performance measure

good understanding of Mil-Std-499 and Mil-Std-499A

  Electrode impedances

How did this procedure affect the signal observed from the electrode and the electrode impedances?

  Write a report on environmental companies

Write a report on environmental companies

  Scanning electron microscopy

Prepare a schematic diagram below of the major parts of the SEM

  Design a pumping and piping system

creating the pumping and piping system to supply cool water to the condenser

  A repulsive potential energy should be a positive one

Using the data provided on the webvista site in the file marked vdw.txt, try to develop a mathematical equation for the vdW potential we discussed in class, U(x), that best fits the data

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd