mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
// Example 03-20 from "Getting Started with Processing"
|
||||
// by Reas & Fry. O'Reilly / Make 2010
|
||||
|
||||
size(480, 120);
|
||||
smooth();
|
||||
|
||||
// Left creature
|
||||
beginShape();
|
||||
vertex(50, 120);
|
||||
vertex(100, 90);
|
||||
vertex(110, 60);
|
||||
vertex(80, 20);
|
||||
vertex(210, 60);
|
||||
vertex(160, 80);
|
||||
vertex(200, 90);
|
||||
vertex(140, 100);
|
||||
vertex(130, 120);
|
||||
endShape();
|
||||
fill(0);
|
||||
ellipse(155, 60, 8, 8);
|
||||
|
||||
// Right creature
|
||||
fill(255);
|
||||
beginShape();
|
||||
vertex(370, 120);
|
||||
vertex(360, 90);
|
||||
vertex(290, 80);
|
||||
vertex(340, 70);
|
||||
vertex(280, 50);
|
||||
vertex(420, 10);
|
||||
vertex(390, 50);
|
||||
vertex(410, 90);
|
||||
vertex(460, 120);
|
||||
endShape();
|
||||
fill(0);
|
||||
ellipse(345, 50, 10, 10);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user