Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
Kristoffer
Kristoffer's Profile
1
Posts
0
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
SVG rotate problem
[2 Replies]
17-Jul-2013 11:06 AM
Forum:
Programming Questions
Hi all,
I can't get a handle on why this my rotations are all over the place. I think this code should really
work:
s = loadShape("svg/Worms/ian-symbol-lumbricus-spp-1.svg");
....
pushMatrix();
translate(-s.width/2,-s.height/2);
rotate(PI*random(2));
shape (s);
popMatrix();
The shape is in the top lefthand corner before rotation - but after the rotation its all over the place, What have I misunderstood?
«Prev
Next »
Moderate user : Kristoffer
Forum