mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Keywords changes, currently not entirely working
This commit is contained in:
@@ -15,13 +15,10 @@ void setup() {
|
||||
s.stroke(255);
|
||||
s.strokeWeight(2);
|
||||
// Exterior part of shape
|
||||
s.beginContour();
|
||||
s.vertex(-100,-100);
|
||||
s.vertex(100,-100);
|
||||
s.vertex(100,100);
|
||||
s.vertex(-100,100);
|
||||
s.vertex(-100,-100);
|
||||
s.endContour();
|
||||
|
||||
// Interior part of shape
|
||||
s.beginContour();
|
||||
@@ -29,11 +26,10 @@ void setup() {
|
||||
s.vertex(10,-10);
|
||||
s.vertex(10,10);
|
||||
s.vertex(-10,10);
|
||||
s.vertex(-10,-10);
|
||||
s.endContour();
|
||||
|
||||
// Finishing off shape
|
||||
s.end();
|
||||
s.end(CLOSE);
|
||||
}
|
||||
|
||||
void draw() {
|
||||
|
||||
Reference in New Issue
Block a user