Blog Design Development Mobile Inspiration CSS Javascript News Opinions Politics Menu

Canvas Cheat Sheet

HTML5 Canvas Cheat Sheet
HTML5 Canvas Text Font, Size, and Style Tutorial

HTML5 Canvas Image Size Tutorial

Description

To set the size of an image using HTML5 Canvas, we can add two additional arguments to the drawImage() method, width and height.

Demo