This method doesn't draw anything to the canvas directly. Vertical distance the shadow will be offset. i remove .src from image.src The error is: Uncaught 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)' and it is on line 163.
CanvasRenderingContext2D - Web APIs | MDN - Mozilla Developer Connect and share knowledge within a single location that is structured and easy to search. and a height of 104. The x-axis coordinate in the destination canvas at which to place the top-left