Skip to content
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

PShapeSVG ignores rx and ry attributes of <rect> element #904

Open
Junology opened this issue Jan 10, 2025 · 0 comments · May be fixed by #905
Open

PShapeSVG ignores rx and ry attributes of <rect> element #904

Junology opened this issue Jan 10, 2025 · 0 comments · May be fixed by #905
Labels
bug Something isn't working

Comments

@Junology
Copy link
Contributor

Most appropriate sub-area of Processing 4?

Image

Processing version

commit 87fb351

Operating system

Linux

Steps to reproduce this

"1. Create a new sketch and enter the code snippet below.

  1. Put rects.svg attached to data folder.

  2. Run, and you'll see ten squares whose corners are not rounded."

snippet

PShape shapeRects;

void setup() {
  size(400,300);
  shapeRects = loadShape("rects.svg");
}

void draw() {
  background(#AABBCC);
  shape(shapeRects, 40, 50, 320, 200);
}

rects.svg is attached:
rects

Additional context

SVG <rect> element should be parsed following https://www.w3.org/TR/SVG11/shapes.html#RectElement

Would you like to work on the issue?

Yes

@Junology Junology added the bug Something isn't working label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant