summaryrefslogtreecommitdiff
path: root/vodaviz.pde
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2012-01-25 20:54:42 +0000
committerTim Redfern <tim@eclectronics.org>2012-01-25 20:54:42 +0000
commit80ca35018b336901c2470a5a908c518f782161af (patch)
tree342b169a4fffb0a0ae127bceadae7bd1de4a13ed /vodaviz.pde
parent51638a948eb668baf2cc1a478f324fdcff2708f2 (diff)
tinkering
Diffstat (limited to 'vodaviz.pde')
-rw-r--r--vodaviz.pde13
1 files changed, 10 insertions, 3 deletions
diff --git a/vodaviz.pde b/vodaviz.pde
index 514417d..8f85392 100644
--- a/vodaviz.pde
+++ b/vodaviz.pde
@@ -12,20 +12,27 @@
//
//http://www.vectortemplates.com/vector-world-map.php
+//requirements -
+//must be able to transform points to a new projection
+// maybe not through normal shape library
+//must be able to find a random point within the shape
+//
+
PShape s;
PShape[] country;
void setup(){
println("vodaviz v0.1");
- size(634,477); //832,220);
+ size(800,600); //832,220);
background(0,0,0);
float m = millis();
- s = loadShape("World_map_(Miller_cylindrical_projection,_blank).svg");
+ s = loadShape("world_countries_outlines.svg");
println("loaded svg in "+((millis()-m)*.001)+" seconds");
country = new PShape[10];
- country[0]=s.getChild("path2562");
+ country[0]=s.getChild("c001");
country[0].disableStyle();
+ //country[0].scale(0.5);
}
void draw() {