Advertisement
Guest User

Untitled

a guest
Nov 30th, 2015
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. context.beginPath();
  2. for (var i = 0; i < (length of elevations); i++){
  3.     context.moveTo(i*canvas.width/(length of elevations), canvas.height-elevations[i]);
  4. }
  5. context.moveTo(canvas.width+1, canvas.height+1);
  6. context.moveTo(-1, canvas.height+1);
  7. context.closePath();
  8. context.fillStyle = "#F00";
  9. context.fill();
  10. alert("attempting to fill");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement