The
Canvas
Drawing with code — pixel by pixel
Chapter
01
The Setup
01
Setup
02
Shapes
03
Paths
04
Style
05
Text & Image
06
Animation
← Prev
←
Next →
→
Reset
R
01 / 05
A canvas is a blank rectangle of pixels you draw on with JavaScript.
Code
Result
canvas ·
320 × 240
px