processing/processing4

P2D, P3D shift .svg place

Open

#788 opened on Sep 26, 2023

View on GitHub
 (3 comments) (0 reactions) (0 assignees)Java (176 forks)auto 404
help wantedopengl

Repository metrics

Stars
 (439 stars)
PR merge metrics
 (PR metrics pending)

Description

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:

Contributor guide