Skip to content

Commit a468129

Browse files
committed
Fix strokes going outside canvas element
1 parent 7a3df40 commit a468129

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/lesson6/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ context.fillRect(100, 100, 50, 100);
6565
Now let's add another rectangle, but this time only its outline.
6666

6767
```
68-
context.strokeRect(400, 100, 50, 100);
68+
context.strokeRect(300, 100, 50, 100);
6969
```
7070

7171
**Bonus** Add a new rectangle outline with dimensions **120x150** at the bottom right of the screen. The **line width** of the rectangle should be 1.

0 commit comments

Comments
 (0)