diff options
| author | git@eclectronics.org <git@eclectronics.org@eclectronics.org> | 2012-02-22 13:59:46 +0000 |
|---|---|---|
| committer | git@eclectronics.org <git@eclectronics.org@eclectronics.org> | 2012-02-22 13:59:46 +0000 |
| commit | a883f0f930a2389d25ac0573e113df62bb1f5fe9 (patch) | |
| tree | 3a45b0e8a794d2488cbe7ccb7ea79e98d8eb8485 /other | |
| parent | 4deda1a179b3b644173fba67be00fc55063cc9d7 (diff) | |
straghtline renderings etc
Diffstat (limited to 'other')
| -rw-r--r-- | other/vodaviz-Pshape.pde | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/other/vodaviz-Pshape.pde b/other/vodaviz-Pshape.pde new file mode 100644 index 0000000..8f85392 --- /dev/null +++ b/other/vodaviz-Pshape.pde @@ -0,0 +1,41 @@ +//vodafone call visualisation +// +//Tim Redfern Jan 2012 +// +//scale of wall 10.57x2.8m - some parts are obscured +// +//416 x 110 in. ~ 62400x16500 ~ 1029 mpx ~ 2945 MB ram to open +// +//CousinMarriageWorld.svg, nominally 940 × 470 pixels, file size: 1.99 MB +//World_map_(Miller_cylindrical_projection,_blank).svg, nominally 634 × 477 pixels, file size: 1.84 MB +//wikimedia +// +//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(800,600); //832,220); + background(0,0,0); + float m = millis(); + s = loadShape("world_countries_outlines.svg"); + println("loaded svg in "+((millis()-m)*.001)+" seconds"); + country = new PShape[10]; + country[0]=s.getChild("c001"); + country[0].disableStyle(); + //country[0].scale(0.5); +} + +void draw() { + fill(102, 0, 0); + shape(country[0], 0 , 0); +} |
