mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Examples updated accordingly
This commit is contained in:
@@ -13,9 +13,10 @@ void setup() {
|
||||
smooth();
|
||||
// First create the shape
|
||||
star = createShape();
|
||||
star.beginShape();
|
||||
// You can set fill and stroke
|
||||
star.fill(102);
|
||||
star.stroke(255);
|
||||
star.fill(color(102));
|
||||
star.stroke(color(255));
|
||||
star.strokeWeight(2);
|
||||
// Here, we are hardcoding a series of vertices
|
||||
star.vertex(0, -50);
|
||||
@@ -28,7 +29,7 @@ void setup() {
|
||||
star.vertex(-23, 7);
|
||||
star.vertex(-47, -15);
|
||||
star.vertex(-14, -20);
|
||||
star.end(CLOSE);
|
||||
star.endShape(CLOSE);
|
||||
}
|
||||
|
||||
void draw() {
|
||||
|
||||
Reference in New Issue
Block a user