mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
adding nature of code examples
This commit is contained in:
+24
@@ -0,0 +1,24 @@
|
||||
// Random Walker (No Vectors)
|
||||
// Daniel Shiffman <http://www.shiffman.net>
|
||||
// The Nature of Code
|
||||
|
||||
Walker w;
|
||||
|
||||
void setup() {
|
||||
size(400,400);
|
||||
frameRate(30);
|
||||
|
||||
// Create a walker object
|
||||
w = new Walker();
|
||||
|
||||
}
|
||||
|
||||
void draw() {
|
||||
background(255);
|
||||
// Run the walker object
|
||||
w.walk();
|
||||
w.render();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user