Skip to content

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

Closed
@Junology

Description

@Junology

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions