Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5952ae1

Browse files
authored
Fixed typo for paintToCanvas
1 parent cfb9276 commit 5952ae1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

19 - Webcam Fun/scripts-FINISHED.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function getVideo() {
1616
});
1717
}
1818

19-
function paintToCanavas() {
19+
function paintToCanvas() {
2020
const width = video.videoWidth;
2121
const height = video.videoHeight;
2222
canvas.width = width;
@@ -99,4 +99,4 @@ function greenScreen(pixels) {
9999

100100
getVideo();
101101

102-
video.addEventListener('canplay', paintToCanavas);
102+
video.addEventListener('canplay', paintToCanvas);

0 commit comments

Comments
 (0)