Code
<!DOCTYPE html>
<html>
    <head>
        <title>Wikitechy HTML Canvas shadowColor with example</title>
    </head>
        <body>
            <h1>Wikitechy HTML Canvas shadowColor with example</h1>
            <canvas id="wikitechyCanvas" width="300" height="150"
            Style="border:1px solid ;"
>
</canvas>
            <script>
                var r = document.getElementById("wikitechyCanvas");
                var ab = r.getContext("2d");
                ab.shadowBlur = 30;
                ab.fillStyle = "blue";
                ab. shadowColor = "red";
                ab.fillRect(10, 10, 80, 60);
                ab.shadowColor = "green";
                ab.fillRect(140, 20, 100, 80);
            
</script>
        </body>
</html>



Result