ctx.shadowColor = "black"; ctx.shadowOffsetY = 10; ctx.shadowOffsetX = 10; ctx.fillStyle = "green" ctx.fillRect(10, 10, 100, 100);