Files
sunny9898/task8/_ref/PROCESSING--Flow-field-master/flow_field.pde
louiscklaw 5637fbf94f update,
2025-02-01 02:07:58 +08:00

25 lines
366 B
Plaintext

import java.util.Iterator;
boolean debug = true;
FlowField flow;
VehicleSystem vs;
void setup() {
fullScreen(FX2D);
smooth(8);
background(#2F2933);
flow = new FlowField(10);
vs = new VehicleSystem();
frameRate(1000);
blendMode(BLEND);
}
void draw() {
vs.run(flow);
}
void mousePressed() {
noLoop();
saveFrame();
}