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

  Thin, thick and combined cylinder theory

Strength of Materials: Advanced DV01 35, LO2 Thin, Thick and Combined Cylinder Theory:  This outcome is assessed using all three of the assignments detailed below.   For each assignment you are required to write a report.

  Simulation of industrial systems

To provide you with the experience of performing a substantial simulation study. With Rockwell Arena software, you will model a real world system.

  Problem on functional programming

Assessment will be carried out by oral examination during the lab sessions (nothing needs to be handed in). When you have completed the exercises you should ask a tutor to examine your solution. The tutor will then ask you some questions to test yo..

  Compare critically the cycle of operations

Determine, making and justifying assumptions as required, the maximum axial boring rate in units - Describe in detail with the aid of sketches

  What the primary difference between eeprom and flash eeprom

a what the primary difference between eeprom and flash eeprom in terms of how they can be used?b approximately how many

  Specify predecessor-successor linkages between two tasks

What is another way to specify predecessor-successor linkages between two tasks? Describe AND provide a screen shot of the steps

  Method of undertaking a point measurement traverse

Describe the method of undertaking an anemometer traverse for a mine airway and describe the two main methods of undertaking a pressure survey in a mine. What advantages and disadvantages do each method have?

  Evaluate the online crm system of your bank what are the

what are the motivations for an organization to have a good supply chain management scm system? define scm in your own

  Games of all kinds are the result of a process that

you will explore a game through the lens set up by the weekly material.games of all kinds are the result of a process

  Find the set of rationalizable strategies

Find the set of rationalizable strategies

  What is the sound pressure level with all three running

What is the sound pressure level with all three running - Does the employee need to be included in a hearing conservation program

  Define cephalocaudal and proximal-distal motor development

Define both cephalocaudal and proximal-distal motor development. Share how an understanding of these concepts can influence a parent's and teacher's support of an infants' and toddlers' motor development.

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