Files
processing4/android/examples/OpenGL/Retained/PolyRetain/PolyRetain.pde
2012-02-12 21:33:18 +00:00

26 lines
549 B
Plaintext

// ISSUES: non-interactive sketches don't show anything on screen,
// and polygon tessellation still not implemented.
size(100, 100, P3D);
PShape obj = createShape(POLYGON);
obj.fill(0, 255, 0, 255);
obj.stroke(0, 0, 255, 255);
obj.strokeWeight(5);
obj.strokeJoin(ROUND);
obj.beginContour();
obj.vertex(10, 10);
obj.vertex(10, 90);
obj.vertex(90, 90);
obj.vertex(90, 10);
obj.endContour();
obj.beginContour();
obj.vertex(40, 40);
obj.vertex(70, 40);
obj.vertex(70, 70);
obj.vertex(40, 70);
obj.endContour();
obj.end(CLOSE);
shape(obj);