fork download
  1. tracker_canvas_context.beginPath();
  2. for (footprint_point = 0; footprint_point < 360; footprint_point++){
  3. footprint_x_pos = Math.round((retroTrack.footprint[footprint_point].lon + 180)/360*tracker_canvas_width);
  4. footprint_y_pos = Math.round((180-(retroTrack.footprint[footprint_point].lat+90))/180*tracker_canvas_height);
  5.  
  6. tracker_canvas_context.lineTo(footprint_x_pos, footprint_y_pos);
  7. tracker_canvas_context.moveTo(footprint_x_pos, footprint_y_pos);
  8. }
  9.  
  10. tracker_canvas_context.closePath();
  11.  
  12. tracker_canvas_context.lineWidth = 1;
  13. tracker_canvas_context.fillStyle = "red";
  14. tracker_canvas_context.fill();
  15. tracker_canvas_context.strokeStyle = "blue";
  16. tracker_canvas_context.stroke();
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty