Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
spongedog
spongedog's Profile
1
Posts
1
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
Problems fitting SVG in window
[2 Replies]
04-Jan-2011 01:58 PM
Forum:
Programming Questions
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 -
PShape s;
void setup() {
size(940, 415);
smooth();
s = loadShape("c:\\abc\\world.svg");
noLoop();
}
void draw() {
shape(s, 0, 0, 940, 415);
}
When I run the above bit of code, I get only Canada/ Alaska, pretty as I imagine they are, I would like to see the rest of the world!
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
«Prev
Next »
Moderate user : spongedog
Forum