(3/10)

Pro Access Required

This is a premium lesson. Upgrade to Pro to unlock this interactive exercise and continue your learning journey.

🌐HTML

Canvas Magic

0 WPM
0% Accuracy
0:00 Time elapsed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<canvas id="typy-canvas" width="400" height="300" style="border: 1px solid #000;">
Your browser doesn't support canvas.
</canvas>
<script>
const canvas = document.getElementById('typy-canvas');
const ctx = canvas.getContext('2d');
// Draw Typy's face
ctx.fillStyle = '#4ecdc4';
ctx.fillRect(150, 100, 100, 100);
// Draw Typy's eyes
ctx.fillStyle = '#000';
ctx.fillRect(170, 120, 20, 20);
ctx.fillRect(210, 120, 20, 20);
// Draw Typy's smile
ctx.beginPath();
ctx.arc(200, 160, 30, 0, Math.PI);
ctx.stroke();
</script>
0 / 587
👆
Hold This!
Press This!
👇
`~
1!
2@
3#
4$
5%
6^
7&
8*
9(
0)
-_
=+
Q
W
E
R
T
Y
U
I
O
P
[{
]}
\|
A
S
D
F
G
H
J
K
L
;:
'"
Z
X
C
V
B
N
M
,<
.>
/?
Thumb
Index
Middle
Ring
Pinky