mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
changes to simulate examples
This commit is contained in:
@@ -16,7 +16,7 @@ void setup() {
|
||||
flock = new Flock();
|
||||
// Add an initial set of boids into the system
|
||||
for (int i = 0; i < 150; i++) {
|
||||
flock.addBoid(new Boid(new PVector(width/2,height/2), 3.0, 0.05));
|
||||
flock.addBoid(new Boid(width/2,height/2));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,5 +27,5 @@ void draw() {
|
||||
|
||||
// Add a new boid into the System
|
||||
void mousePressed() {
|
||||
flock.addBoid(new Boid(new PVector(mouseX,mouseY), 2.0, 0.05));
|
||||
flock.addBoid(new Boid(mouseX,mouseY));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user