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

19 lines
461 B
Plaintext

// ISSUES: non-interactive sketches don't show anything on screen,
// and polygon tessellation still not implemented.
size(100, 100, P3D);
smooth();
PShape obj = createShape();
obj.noFill();
obj.stroke(0);
obj.strokeWeight(1);
obj.vertex(15, 40); // V1 (see p.76)
obj.bezierVertex(5, 0, 80, 0, 50, 55); // C1, C2, V2
obj.vertex(30, 45); // V3
obj.vertex(25, 75); // V4
obj.bezierVertex(50, 70, 75, 90, 80, 70); // C3, C4, V5
obj.end();
shape(obj);