processing/processing4

P2D, P3D shift .svg place

Open

#788 建立於 2023年9月26日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)Java (176 fork)auto 404
help wantedopengl

倉庫指標

Star
 (439 star)
PR 合併指標
 (PR 指標待抓取)

描述

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:

貢獻者指南