Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

Re : PShape not drawing

$
0
0
It is not a bug because the shape examples that come with Processing work. I changed your setup code Highlighted) and it worked.

  1. public void setup() {
  2.   size(1280, 720, P2D);
  3.   this.shape = createShape();
  4.   this.shape.stroke(0);
  5.   this.shape.strokeWeight(10);
  6.   this.shape.beginShape();
  7.   this.shape.vertex(width / 2, 0);
  8.   this.shape.vertex(width / 2, height);
  9.   this.shape.endShape();
  10. }



Viewing all articles
Browse latest Browse all 1768

Trending Articles