Skip to content

P2D, P3D shift .svg place #788

Open
Open
@processing-bot

Description

@processing-bot

In GitLab by @mrbbp on Sep 26, 2023, 18:27

Description

i was playing with svg jerking on screen and to verify P2D or P3D performances i found strange behavior.
The svg shape shift to right. it is supposed to center it, and it is with no renderer added.

Expected Behavior

the svg should be in the same place

Current Behavior

when a renderer is added, the svg shift to the right.

Steps to Reproduce

PShape motif;

void setup() {
  size(600,600);
// size(600,600,P2D);
  motif = loadShape("mot.svg");
  shapeMode(CENTER);
}

void draw() {
  background(200);
  shape(motif, width/2, height/2, width, height);
}
  1. add the renderer in size (uncomment the line)

Your Environment

  • Processing version: 4.3
  • Operating System and OS version: MacOS Ventura 13.5.2
  • Other information:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions