Skip to content

Commit

Permalink
Adding CTR distance marking #69
Browse files Browse the repository at this point in the history
  • Loading branch information
Diastro committed Dec 24, 2014
1 parent 8486961 commit 2308138
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion assets/scripts/canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -509,10 +509,32 @@ function canvas_draw_compass(cc) {
function canvas_draw_ctr(cc) {
cc.translate(round(prop.canvas.size.width/2), round(prop.canvas.size.height/2));
cc.translate(prop.canvas.panX, prop.canvas.panY);
cc.fillStyle = "rgba(200, 255, 200, 0.04)";
cc.fillStyle = "rgba(200, 255, 200, 0.02)";
cc.beginPath();
cc.arc(0, 0, airport_get().ctr_radius*prop.ui.scale, 0, Math.PI*2);
cc.fill();

cc.beginPath();
cc.arc(0, 0, airport_get().ctr_radius*prop.ui.scale, 0, Math.PI*2);
cc.linewidth = 1;
cc.strokeStyle = "rgba(200, 255, 200, 0.25)";
cc.stroke();

cc.beginPath();
cc.arc(0, 0, airport_get().ctr_radius*prop.ui.scale*0.75, 0, Math.PI*2);
cc.strokeStyle = "rgba(200, 255, 200, 0.1)";
cc.stroke();

cc.beginPath();
cc.arc(0, 0, airport_get().ctr_radius*prop.ui.scale*0.50, 0, Math.PI*2);
cc.strokeStyle = "rgba(200, 255, 200, 0.1)";
cc.stroke();

cc.beginPath();
cc.arc(0, 0, airport_get().ctr_radius*prop.ui.scale*0.25, 0, Math.PI*2);
cc.strokeStyle = "rgba(200, 255, 200, 0.1)";
cc.stroke();

}

function canvas_update_post() {
Expand Down

0 comments on commit 2308138

Please sign in to comment.