ctx.shadowColor = 'black'; ctx.shadowOffsetY = 10; ctx.shadowBlur = 10; ctx.fillStyle = 'green'; ctx.fillRect(10, 10, 100, 100);