Closed
Description
Created by: vincentsijben
Description
The stroke of the red square should be overlapped with the fill of the blue square.
Steps to Reproduce
Changing P3D to P2D gives the expected result.
Code | P2D | P3D |
void setup() {
size(170, 170, P3D);
}
void draw() {
background(220);
stroke(0);
fill(255,0,0);
rect(20, 20, 100, 100);
fill(0,0,255);
rect(50, 50, 100, 100);
} |
![]() |
![]() |
Your Environment
- Processing version: 4.2
- Operating System and OS version: MacOS Ventura 13.3.1 on Apple M1 Pro
Possible Causes / Solutions
It's the same issue as reported here for p5js in WebGL mode.
Activity