Last active
January 20, 2020 10:02
-
-
Save john92paul/c2fb7fe251e59787c888be6fd2209f74 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var myImage=new Image(); | |
myImage.src="https://images.unsplash.com/photo-1572800578930-fd1013b506c1?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=750&q=80"; | |
myImage.onload=function(){ | |
myContext.drawImage(myImage,0,0,myCanvas.width,myCanvas.height); | |
}; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment