Skip to content

Stroke overlapping issue on co-planar shapes in P3D #697

Closed
@processing-bot

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);
}
image image

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    has attachmentAttachment was not transfered from GitLab

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions