672646-alpha-radial-gradient-ref.html 384 B

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