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:

贡献者指南