mirror of
https://github.com/processing/processing4.git
synced 2026-01-29 03:11:08 +01:00
23 lines
423 B
Plaintext
Executable File
23 lines
423 B
Plaintext
Executable File
size(100, 100, P2D);
|
|
|
|
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);
|