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

  What kind of fold is represented on the map

What kind of fold is represented on the map? Draw a geological cross section along the line A-B shown on the map.

  Manufacturing planning

Define the nodes, what they represent, and node values and define the arcs, arc costs, arc capacities if any.

  Draw on relevant theoretical and management concepts

Draw on relevant theoretical and management concepts covered through the course and describe the problem or issue and critically analyse the issue including considerations of relevant policy and ecological factors

  What are strategic risks

What are the processes for developing a new mine in Western Australia and what are strategic risks? How would you manage these risks?

  Rules governed the type of attributes of offerings

The tomb of high priest Thoth Petosiris contains scenes were Egyptian and Hellenistic scenes were merged

  Generate a report on the type of clutch system

Investigate the clutch systems being displayed and generate a report on the type of clutch system and transmission it is used for

  Question 1in view of growing number of deaths on the road

question 1in view of growing number of deaths on the road the police department plans to introduce more speeding

  Electrode impedances

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

  Define maximum stripping ratio

Calculate required output by a single excavator appropriate to this production and select an appropriate machine - Calculate cycle times for trucks.

  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

  Write a report on one of the two following topics1 discuss

write a report on one of the two following topics1 discuss the different agencies institutes centers and other national

  The test statistic for the hypothesis test

If you randomly select 1 M&M plain candy, what is the probability That the candy will weigh less than 0.8535 g?

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