Advertisement
cherurg

Untitled

Jan 28th, 2015
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var plot = new Plotter("plot", {
  2.     left: -3,
  3.     right: +3,
  4.     bottom: -3,
  5.     top: 3,
  6.     width: 600,
  7.     height: 600
  8. });
  9.  
  10. var arr = [];
  11. var i;
  12. for (i = 0; i < 2*Math.PI; i += 0.01) {
  13.     arr.push({
  14.         x: Math.cos(i),
  15.         y: Math.sin(i)
  16.     });
  17. }
  18.  
  19. plot.addArea(arr, {
  20.     fillOpacity: 0.6
  21. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement