From be791a55506c1986606c3ab6c3694484f50a2188 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Tue, 7 Feb 2012 16:42:11 +0000 Subject: still wonky paths --- data/countries_named_mercator.svg | 219 ++++++++++++++++++++++++++++++++++---- other/thoughts | 4 +- parsecalldata.pde | 9 +- vodaviz.pde | 151 +++++++++++++++----------- 4 files changed, 294 insertions(+), 89 deletions(-) diff --git a/data/countries_named_mercator.svg b/data/countries_named_mercator.svg index cbe8991..e55a9ca 100644 --- a/data/countries_named_mercator.svg +++ b/data/countries_named_mercator.svg @@ -26,15 +26,15 @@ guidetolerance="10" inkscape:pageopacity="0" inkscape:pageshadow="2" - inkscape:window-width="1440" - inkscape:window-height="823" + inkscape:window-width="1152" + inkscape:window-height="835" id="namedview3653" showgrid="false" - inkscape:zoom="1.808408" + inkscape:zoom="1.9592741" inkscape:cx="458.178" inkscape:cy="316.1525" inkscape:window-x="0" - inkscape:window-y="24" + inkscape:window-y="0" inkscape:window-maximized="1" inkscape:current-layer="svg2" /> @@ -1761,13 +1905,7 @@ points=" 426.498,195.396 426.738,195.635 426.498,195.875 426.498,196.115 426.738,196.355 426.979,196.596 427.218,196.835 426.979,196.835 426.979,197.076 426.738,197.076 426.979,197.076 426.979,197.315 426.258,197.556 426.019,197.315 425.777,197.315 425.538,197.556 426.019,197.556 426.258,197.796 426.019,198.036 425.538,198.036 425.777,198.276 425.538,198.276 425.538,198.516 425.777,198.516 425.538,198.756 425.777,198.756 425.538,198.756 425.298,198.756 424.818,199.236 424.578,199.236 424.578,199.476 424.818,199.716 423.857,199.476 423.618,199.716 422.897,199.716 422.418,199.716 422.178,199.956 421.698,199.956 421.698,200.196 421.458,199.956 420.738,199.956 420.019,199.956 419.298,199.716 418.338,199.716 417.378,199.476 417.139,199.476 416.897,199.236 416.658,198.996 416.658,198.756 416.897,198.756 415.938,198.996 415.698,198.756 415.218,198.996 414.979,198.996 414.738,198.996 414.258,199.476 413.777,199.236 413.538,199.236 413.298,199.236 413.298,198.996 413.058,198.996 412.818,198.996 412.578,199.236 412.338,199.236 411.857,198.996 411.857,198.756 411.378,198.756 411.378,198.516 411.378,198.276 411.378,198.036 411.618,198.036 411.378,197.796 411.618,197.796 411.857,197.796 411.857,197.556 411.857,197.796 412.098,197.796 412.338,197.796 412.338,198.036 412.578,198.036 412.578,198.276 412.818,198.276 413.298,198.036 413.058,197.796 413.298,197.556 413.298,197.796 413.538,197.796 414.019,197.796 414.258,198.036 414.498,198.036 414.738,198.036 415.218,198.036 415.218,197.796 415.458,197.796 415.698,197.556 416.178,197.556 416.897,197.556 416.658,197.556 416.897,197.315 416.897,197.556 417.378,197.556 418.098,197.556 418.098,197.796 418.578,198.036 418.578,197.796 418.578,197.556 418.578,197.315 418.338,197.315 418.578,197.076 417.857,196.596 418.338,196.355 419.298,196.115 419.298,195.875 419.298,195.635 419.538,195.635 420.019,195.635 420.258,195.396 420.019,195.396 420.258,195.155 420.738,195.396 420.498,195.635 421.218,195.635 421.458,195.396 421.938,195.635 422.178,195.155 422.418,195.155 422.658,194.675 422.897,194.675 422.897,194.916 423.378,194.675 424.338,194.916 424.578,195.155 424.818,195.155 425.538,195.396 425.777,195.155 426.019,195.155 426.258,195.396 426.498,195.396 " id="_AUSTRIA" style="fill:none;stroke:#6e7072;stroke-width:0.23999999;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:3.8499999" - inkscape:label="#polyline104" /> + \ No newline at end of file diff --git a/other/thoughts b/other/thoughts index c08cda8..225efca 100644 --- a/other/thoughts +++ b/other/thoughts @@ -45,7 +45,9 @@ no calls anyway -for now, removing ANDORRA ANTIGUA ANGUILA - +0&&ep.x>0){ - RPoint Sp=shpmap.map(sp.x,sp.y); - RPoint Ep=shpmap.map(ep.x,ep.y); + if (true) { //draw countries + beginShape(); + for (int k=0;k0&&e.x>0){ //point found + RPoint sp=ptrans.form(pnorm.alise(s)); + RPoint ep=ptrans.form(pnorm.alise(e)); + RPoint Sp=smap.per(sp,4); + RPoint Ep=smap.per(ep,4); + RPoint Mp=smap.per(GCircFract(sp,ep,0.8),4.1); + beginShape(); + line(Sp.x+(getWidth()/2),Sp.y+(getHeight()/2),Mp.x+(getWidth()/2),Mp.y+(getHeight()/2)); + line(Mp.x+(getWidth()/2),Mp.y+(getHeight()/2),Ep.x+(getWidth()/2),Ep.y+(getHeight()/2)); + endShape(); + } } - //} - j=j+1; - if (j>(calls.countries.get(i).calls*.01)){ - i++; - stroke(random(200)+50, random(200)+50,random(200)+50); - println("plotting "+calls.countries.get(i).name+": "+calls.countries.get(i).calls+" calls"); - j=0; - } + println("plotting "+calls.countries.get(i).name+": "+calls.countries.get(i).calls+" calls"); + } + + + i++; //} if (i==calls.countries.size()-1) { - println("finished"); - noLoop(); + println("finished"); + noLoop(); + if (mode=="PDF") exit(); } - //if (mode=="PDF") exit(); } void mousePressed() { -- cgit v1.2.3