Code
Execute
<!DOCTYPE html> <html> <head> <title>Wikitechy HTML Canvas shadowBlur with example</title> </head> <body> <h1>Wikitechy HTML Canvas shadowBlur with example</h1> <canvas id="wikitechyCanvas" width="300" height="150"style="border:1px solid #d3d3d3;"> </canvas> <script> var a= document.getElementById("wikitechyCanvas"); var b = a.getContext("2d"); b.shadowBlur = 30; b.shadowColor = "green"; b.fillStyle = "purple"; b.fillRect(30, 30, 120, 100); </script> </body> </html>
Result