mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 05:39:18 +01:00
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
// Example 02-01 from "Getting Started with Processing"
|
||||
// by Reas & Fry. O'Reilly / Make 2010
|
||||
|
||||
ellipse(50, 50, 80, 80);
|
||||
@@ -0,0 +1,17 @@
|
||||
// Example 02-02 from "Getting Started with Processing"
|
||||
// by Reas & Fry. O'Reilly / Make 2010
|
||||
|
||||
void setup() {
|
||||
size(480, 120);
|
||||
smooth();
|
||||
}
|
||||
|
||||
void draw() {
|
||||
if (mousePressed) {
|
||||
fill(0);
|
||||
} else {
|
||||
fill(255);
|
||||
}
|
||||
ellipse(mouseX, mouseY, 80, 80);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user