Quantcast
Channel: simonsarris.com » html5
Browsing latest articles
Browse All 8 View Live

Making and Moving Selectable Shapes on an HTML5 Canvas: A Simple Example

I’m writing a book on HTML5, including Canvas! Click here for more information. Wait! I’ve given this tutorial a major overhaul and you should really read the new one here instead. This is part one in...

View Article



Selectable Shapes Part 2: Resizable, Movable Shapes on HTML5 Canvas

In the first tutorial I showed how to create a basic data structure for shapes on an HTML5 canvas and how to make them selectable, draggable, and movable. In this second part we’ll be reorganizing the...

View Article

Image may be NSFW.
Clik here to view.

HTML5 Canvas fillText considered harmful

I’m writing a book on HTML5, including Canvas! Click here for more information. I have in my possession sufficient evidence for the conviction of Canvas’ fillText(). The charge? Performance murder....

View Article

Image may be NSFW.
Clik here to view.

Increasing Performance by Caching Paths on HTML5 Canvas

I’m writing a book on HTML5, including Canvas! Click here for more information. Much of the functionality of Canvas comes from its path drawing functions. Unfortunately for game designers and...

View Article

A transformation class for Canvas to keep track of the transformation matrix

I’m writing a book on HTML5, including Canvas! Click here for more information. The HTML5 Canvas does not have a method for getting the current transformation matrix. For some applications, keeping...

View Article


Understanding the HTML5 Canvas image security rules

I’m writing a book on HTML5, including Canvas! Click here for more information. There’s a common point of confusion regarding when one can use HTML5 Canvas getImageData() and toDataUrl() methods....

View Article

Image may be NSFW.
Clik here to view.

A Gentle Introduction to Making HTML5 Canvas Interactive

I’m writing a book on HTML5, including Canvas! Click here for more information. This is a big overhaul of one of my tutorials on making and moving shapes on an HTML5 Canvas. This new tutorial is vastly...

View Article

I’m writing a book!

I’m writing a book! On HTML5! You can preorder it on Amazon here. It will be in full color with plenty of examples and syntax highlighting and in real live bookstores. A large part of the book will be...

View Article

Browsing latest articles
Browse All 8 View Live




Latest Images