curveVertex() with fill()

curveVertex() and fill() should not form a solid outline.

This generates a shape using curveVertex() with fill(). The end result should NOT be a completely connected (outlined) box. The line should only go through the specified coordinates. The expected result is shown via image on the right.

curveVertex running in PJava
Test written by Dominic Baranski

Source Code:

size(150,150);
background(128);
fill(255);

beginShape();
  curveVertex(5,26);
  curveVertex(5,26);
  curveVertex(73,24);
  curveVertex(73,61);
endShape();

beginShape();
  curveVertex(5,26);
  curveVertex(73,24);
  curveVertex(73,61);
  curveVertex(73,61);
  curveVertex(15,65);
endShape();