672646-alpha-radial-gradient-ref.html (384B)
1 <!doctype html> 2 <head> 3 <style> 4 body { 5 background-color: blue; 6 } 7 </style> 8 9 <body> 10 <canvas id="mycanvas" width="200" height="200"></canvas> 11 12 <script type="text/javascript"> 13 var cx = document.getElementById('mycanvas').getContext('2d'); 14 cx.beginPath(); 15 cx.arc(100, 100, 80, 0, Math.PI*2, true); 16 cx.closePath(); 17 cx.fillStyle = "white"; 18 cx.fill(); 19 </script>