Skip to content

Stroke overlap image() in P3D #27

@processing-bot

Description

@processing-bot

Created by: knupel

When the render is P3D, the stroke() overlap the image, that's not happen in classic renderer and in P2D. that's happen too in P 3.5.3.

Capture d’écran 2019-11-22 à 18 19 43

PGraphics pg;

void setup() {
  size(300,300,P3D); 
  pg = createGraphics(width,height,P3D);
}

void draw() {
  background(75);
  stroke(255);
  strokeWeight(2);
  fill(0);
  ellipse(mouseX,mouseY,100,100);
  
  pg.beginDraw();
  pg.noStroke();
  pg.fill(125);
  pg.beginShape();
  pg.vertex(34,45);
  pg.vertex(width/2,60);
  pg.vertex(width/2,height);
  pg.endShape(CLOSE);
  pg.endDraw();
  image(pg,0,0);
}

Metadata

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