+ 5

Canvas drawImage error : Image is broken

This code was working fine for me when I first made it but now even I am getting error. The picture of Earth wont show up. Why...? /*TypeError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The provided value is not of type '(CSSImageValue or HTMLImageElement or SVGImageElement or HTMLVideoElement or HTMLCanvasElement or ImageBitmap or OffscreenCanvas)'*/ https://code.sololearn.com/WKlrK9IKy7wK/?ref=app

12th Dec 2020, 4:20 PM
Nor'wester 🌪️ 🇧🇩 (INACTIVE)
Nor'wester 🌪️ 🇧🇩 (INACTIVE) - avatar
2 Respuestas
12th Dec 2020, 4:33 PM
David Carroll
David Carroll - avatar
+ 1
Well theres that
12th Dec 2020, 5:00 PM
Nor'wester 🌪️ 🇧🇩 (INACTIVE)
Nor'wester 🌪️ 🇧🇩 (INACTIVE) - avatar