For some reason i can't get my image to display in canvas.. i get a type error.
My script is very basic.. its this:
var logoImg = new Image();
logoImg.src = 'splash.png';
ctx.drawImage(logoImg.src, 0, 0);
What does it mean when it says type error?
You should not have the .src.
ctx.drawImage(logoImg, 0, 0);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With