Watch a demo of different values of the shadowOffsetY property.
Or click a specific value to see the result:
const c = document.getElementById('myCanvas'); const ctx = c.getContext('2d'); ctx.shadowBlur=10; ctx.shadowOffsetY=20; ctx.shadowColor='black'; ctx.fillStyle='red'; ctx.fillRect(20,20,100,80);