02Geek HTML5 and JavaScript, TypeScript, React, Flash, ActionScript online School
Previous VideoPrevious Video

Modifying the HTML and CSS

<p>Before we continue and build our canvas API example we want to align the canvas element to sit on top of our HTML frame.</p> <p>After creating the canvas element we will need to position our canvas in the right area of our screen to do that we will use some CSS tricks to position our canvas exactly where we want it to be placed. Although we are not actively learning CSS in this title the basics of CSS are easy to follow. </p> <p><b>We started our <a href="/courses/video/63/503/canvas-tutorial.html">canvas tutorial</a> using a pre-built template HTML file.</b> The first thing we will want to do is figure out where to place our HTML5 canvas information followed by filling the canvas background color so we can find it using the canvas API.</p> <p>After creating the canvas element we will need to position our canvas in the right area of our screen. To possion elements we will use CSS. We are assuming you have a background in working with CSS if you do not you may follow us by steps - don't worry it will not effect your learning of Canvas. With that said we do encourage you to learn the basics of CSS (you don't need to be a CSS pro). Although we are not actively learning CSS in this title the basics of CSS are easy to follow. </p> <h1>Canvas Tutorial</h1> <p><b>In this video we will solve all the video positioning issues.</b> To make this happen we will be adding some CSS. We will add a style for our canvas. Before we do that we will change the containing layer to be a relative layer enabling us to change the definition of our internal canvas element to be absolute making it really easy to snap it into position. All we have left is to move our element in absolute coordinates using top and left CSS properties.</p>

Javascript for beginners

Light background in programing can help but isn't mandatory. JavaScript for beginners title is a fast 4 hours quick jumpstart to javascript development.

00:30

Defining a Canvas Area

Getting started with the JavaScript Canvas API. An HTML5 canvas tutorial.

07:24

Modifying the HTML and CSS

Before we continue and build our canvas API example we want to align the element to sit on top of our HTML frame. This is only one of many of our canvas tutorials.

03:10

Preparing to draw using loops

Working with loops in this video we will explore the types of loops we can work with.

03:49

Nesting Loops to create a Grid

In the core of it is just two loops only because one is inside of the other each time the first loop finishes a round the internal loop does a complete loop.

08:15

Adding an interval using setInterval

Learn how to work and interact with javascript setinterval.

04:25

Creating User Interaction with Mouse Events

Learn how to add events and main JavaScript Mouse events in to your project

07:38

What should You Learn Next?

Our recomendation of what you should learn next.

01:24