Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<body>
<canvas id="myCanvas" width=400 height=400>Your browser does not support the canvas tag.</canvas>
<script type="text/javascript">
var canvas=document.getElementById('myCanvas');
var context=canvas.getContext('2d');
  
context.rect(50, 50, 200, 100);
context.fillStyle = "#8ED6FF";
  
  // shadow  
context.shadowColor = "#bbbbbb";
context.shadowBlur = 10;
context.shadowOffsetX = 15;
context.shadowOffsetY = 15;
  
context.fill();
</script>
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers