Skip to content

Commit bcff0c8

Browse files
committed
Merge pull request #163 from raboof/patch-1
drawImage seems to expect a canvas, not a context
2 parents 927c7d2 + 6f4a8a9 commit bcff0c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ Your function is also passed a HTML5 Canvas and a 2D Context object, so you can
156156
```javascript
157157
Webcam.snap( function(data_uri, canvas, context) {
158158
// copy image to my own canvas
159-
myContext.drawImage( context, 0, 0 );
159+
myContext.drawImage( canvas, 0, 0 );
160160
} );
161161
```
162162

0 commit comments

Comments
 (0)