mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
moving getting started to the books subfolder
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
// Example 06-10 from "Getting Started with Processing"
|
||||
// by Reas & Fry. O'Reilly / Make 2010
|
||||
|
||||
PShape network;
|
||||
|
||||
void setup() {
|
||||
size(240, 120);
|
||||
smooth();
|
||||
shapeMode(CENTER);
|
||||
network = loadShape("network.svg");
|
||||
}
|
||||
|
||||
void draw() {
|
||||
background(0);
|
||||
float diameter = map(mouseX, 0, width, 10, 800);
|
||||
shape(network, 120, 60, diameter, diameter);
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
|
After Width: | Height: | Size: 322 KiB |
Reference in New Issue
Block a user