Problems fitting SVG in window
              in 
             Programming Questions 
              •  
              2 years ago    
            
 
           
             Hi,
            
            
I'm new to Processing but up until now its been good! I'm trying to render an svg ( http://commons.wikimedia.org/wiki/File:BlankMap-World6,_compact.svg)
            
This is the code I have taken from an example -
            
            
            
I don't think the shape function is performing as I require. Any ideas?
            
If this SVG image is no good, I just need one thats got all the individual countries as seperate id's so I can colour them individually.
            
Thanks
            
SpongeDog
 
           
 
            
           I'm new to Processing but up until now its been good! I'm trying to render an svg ( http://commons.wikimedia.org/wiki/File:BlankMap-World6,_compact.svg)
This is the code I have taken from an example -
- PShape s;
void setup() {
size(940, 415);
smooth();
s = loadShape("c:\\abc\\world.svg");
noLoop();
}
void draw() {
shape(s, 0, 0, 940, 415);
} 
I don't think the shape function is performing as I require. Any ideas?
If this SVG image is no good, I just need one thats got all the individual countries as seperate id's so I can colour them individually.
Thanks
SpongeDog
 
              
              1  
            
 
            