From 89020cfbbec0fe8d0e15aa326174cb5af3d03ce6 Mon Sep 17 00:00:00 2001 From: "git@eclectronics.org" Date: Tue, 14 Feb 2012 14:55:47 +0000 Subject: test white on blue --- parsecalldata.pde | 21 ++++++++++++--------- vodaviz.pde | 50 +++++++++++++++++++++++++++++++++++++------------- 2 files changed, 49 insertions(+), 22 deletions(-) diff --git a/parsecalldata.pde b/parsecalldata.pde index 80361c0..38bcd1e 100644 --- a/parsecalldata.pde +++ b/parsecalldata.pde @@ -72,7 +72,7 @@ class bitmapcountry extends country { super(n,c,m,shp); } void analyse(float _xo,float _xs,float _yo,float _ys) { - int step=5; //speedup + int step=1; //speedup xo=_xo; xs=_xs; yo=_yo; @@ -120,13 +120,16 @@ class bitmapcountry extends country { return new RPoint(px,py); } - RPoint getpoint(){ - float index=random(0.999); - int i=0; - while (points.get(i).index0) { + float index=random(0.999); + int i=0; + while (points.get(i).index0&&e.x>0){ //point found RPoint Sp=screenMapper(pnorm.alise(s)); RPoint Ep=screenMapper(pnorm.alise(e)); RPoint Mp=plerp(Sp,Ep,0.75); - beginShape(); + //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)); - bezier(Sp.x, Sp.y, Sp.x, Sp.y-((getHeight()-Sp.y)*.1), Ep.x, Ep.y-((getHeight()-Ep.y)*.1), Ep.x, Ep.y); - endShape(); - } + //bezier(Sp.x, Sp.y, Sp.x, Sp.y-((getHeight()-Sp.y)*.1), Ep.x, Ep.y-((getHeight()-Ep.y)*.1), Ep.x, Ep.y); + //endShape(); + bstroke.drawstroke(Sp,Ep); + } } //println("plotting "+calls.countries.get(i).name+": "+calls.countries.get(i).calls+" calls"); } -- cgit v1.2.3