- Learn how to manipulate the html canvas using vanilla javascript
- Free tutorial
- Rating: 4.3 out of 54.3 (4 ratings)
- 482 students
- 44min of on-demand video
- Created by Tudor Todorescu
- English
What you’ll learn
- How to properly use the html canvas with JavaScript
- Draw geometrical shapes and forms on the canvas
- Animate effects in the canvas with OOP JavaScript
- Create design patterns and object-oriented programming with JavaScript
Requirements
- no experience required
- a computer or a laptop
- a student attitude
- ton and ton of patience for coding along
Description
Thank you for considering starting this course, it means a lot. I will try my best to show you how to best use the HTML canvas in a fun educative way, in order for you to get the most out of it. We will be covering drawing lines, shapes and animations. Most content is very visual, colorful and updates the canvas in real time. I’m sure you’ll enjoy coding along the mini-projects inside with me.
The canvas element is part of HTML5 and allows for dynamic, scriptable rendering of 2D shapes and bitmap images. It is a low level, procedural model that updates a bitmap. HTML5 Canvas also helps in making 2D games.
History of canvas was initially introduced by Apple for use in their own Mac OS X WebKit component in 2004, powering applications like Dashboard widgets and the Safari browser. Later, in 2005 it was adopted in version 1.8 of Gecko browsers, and Opera in 2006,[and standardized by the Web Hypertext Application Technology Working Group (WHATWG) on new proposed specifications for next generation web technologies.
A canvas consists of a drawable region defined in HTML code with height and width attributes. JavaScript code may access the area through a full set of drawing functions similar to those of other common 2D APIs, thus allowing for dynamically generated graphics. Some anticipated uses of canvas include building graphs, animations, games, and image composition.
Who this course is for:
- JavaScript developers who want to use the html canvas
Show less
Course content
2 sections • 10 lectures • 44m total lengthCollapse all sections
How to get the most out of this course1 lecture • 7min
- How to get the most out of this course06:53
Using the HTML Canvas with JavaScript9 lectures • 37min
- How to set-up the canvas ( DON’T SKIP )06:38
- Drawing a line on the canvas02:59
- Create an animation loop02:58
- Special Offer: Helping Freelancers Get Clients With Free Weekly 1on1 Coaching01:37
- Clearing the canvas and starting fresh02:37
- Resizing event on the canvas03:05
- Creating geometric animations06:14
- Adding mouse events to the canvas05:40
- Using FPS for animation speed05:33