From 80ca35018b336901c2470a5a908c518f782161af Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Wed, 25 Jan 2012 20:54:42 +0000 Subject: tinkering --- vodaviz.pde | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'vodaviz.pde') 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() { -- cgit v1.2.3