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,20 @@
|
||||
// Example 10-08 from "Getting Started with Processing"
|
||||
// by Reas & Fry. O'Reilly / Make 2010
|
||||
|
||||
float[] gray;
|
||||
|
||||
void setup() {
|
||||
size(240, 120);
|
||||
gray = new float[width];
|
||||
for (int i = 0; i < gray.length; i++) {
|
||||
gray[i] = random(0, 255);
|
||||
}
|
||||
}
|
||||
|
||||
void draw() {
|
||||
for (int i = 0; i < gray.length; i++) {
|
||||
stroke(gray[i]);
|
||||
line(i, 0, i, height);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user