← Lessons

Pixel Draw Code

Lesson 4 of 5
● ● ● drawing.jsJS

  
16 × 16 canvasLIVE

Paint color

Code actions

Coordinates

Each command uses x, y, and color parameters: paint(3, 5, 'red').

Pixel Draw Code

Paint a tiny picture and see each tap become a JavaScript command.

🎨Choose a paint color.
📐Tap squares on the 16 × 16 grid.
▶️Replay the code as an animation.