Advertisement
evilqubit

tes

May 21st, 2013
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. var canvas = document.getElementById('canvas');
  2. var ctx = canvas.getContext('2d');
  3.  
  4. ctx.beginPath();ctx.lineWidth = 2;
  5. //ctx.strokeStyle = 'rgba(224, 56, 56, 0.8)'; // 赤
  6. ctx.fillStyle = 'rgba(224, 56, 56, 0.5)'; // 赤
  7. ctx.arc(125, 180, 100, 0, Math.PI*2, false);
  8. ctx.stroke();
  9. ctx.fill();
  10.  
  11. ctx.beginPath();
  12. ctx.fillStyle = 'rgb(183, 227, 180)'; // 緑
  13. ctx.arc(225, 110, 62, 0, Math.PI*2, false);
  14. ctx.fill();
  15.  
  16.  
  17.  
  18. ctx.beginPath();
  19. ctx.fillStyle = 'rgba(93, 126, 251, 0.7)'; // 青
  20. ctx.arc(150, 70, 38, 0, Math.PI*2, false);
  21. ctx.fill();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement