New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong positioning of circles in SVG shapes #3685

Closed
bohnacker opened this Issue Aug 21, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@bohnacker

bohnacker commented Aug 21, 2015

With Processing 3.0 (I used 3.0b4) circles in SVG shapes are drawn to the wrong position. The following SVG file should look like this:

a01

<svg version="1.1" id="Ebene_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100px" height="100px" viewBox="0 0 100 100" enable-background="new 0 0 100 100" xml:space="preserve">
<circle fill="#1A171B" cx="50" cy="50" r="50"/>
<circle fill="#FFFFFF" cx="50" cy="50" r="43.75"/>
<circle fill="#1A171B" cx="50" cy="50" r="37.5"/>
<circle fill="#FFFFFF" cx="50" cy="50" r="31.25"/>
<circle fill="#1A171B" cx="50" cy="50" r="25"/>
<circle fill="#FFFFFF" cx="50" cy="50" r="18.75"/>
<circle fill="#1A171B" cx="50" cy="50" r="12.5"/>
<circle fill="#FFFFFF" cx="50" cy="50" r="6.25"/>
</svg>

But when loading and displaying it with Processing it looks like this. Other shapes like lines or rectangles seem to be ok.

size(300, 300);
background(255);
noStroke();

PShape module1 = loadShape("a01.svg");
shape(module1, 150, 150);
fill(255, 0, 0);
ellipse(150, 150, 10, 10);

img

You'll find the sketch here:
https://dl.dropboxusercontent.com/u/3009093/SVG_Issue.zip

@benfry benfry added the high label Aug 21, 2015

@benfry benfry added this to the 3.0 final milestone Aug 21, 2015

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Aug 21, 2015

Member

Thanks for the report.

Member

benfry commented Aug 21, 2015

Thanks for the report.

@benfry benfry closed this in 5da64f8 Aug 21, 2015

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Aug 21, 2015

Member

Fixed for 3 beta 5.

Member

benfry commented Aug 21, 2015

Fixed for 3 beta 5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment