processing / processing/processing4
P2D, P3D shift .svg place
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 494
- Forks
- 183
- Avg merge
- 4h 39m
- Merged PRs (30d)
- 3
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);
}
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the provided sketch in Processing 4.3 with the default renderer and then with P2D or P3D, using the reported SVG shape and centered shapeMode. Compare the rendered position and trace the renderer-specific shape placement; done means the SVG remains in the same place across renderers.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100