I have a semi-transparent shape:
ctx.fillStyle = "rgba(255, 255, 255, 0.5)";
ctx.beginPath();
ctx.moveTo(0, 150);
ctx.lineTo(300, 0);
ctx.lineTo(300, 450);
ctx.lineTo(50, 500);
ctx.closePath();
ctx.fill();
I want to add a bit of shadow, but I want it to only appear outside of the shape, I guess more of a glow than a shadow. Is there a way to do this in canvas as my attempts with:
ctx.shadowBlur = 5;
ctx.shadowColor = 'rgba(0, 0, 0, 0.25)';
look fairy ordinary as the dark shadow is visible through the semi-transparent shape.
Thanks!