mirror of
https://github.com/processing/processing4.git
synced 2026-01-30 03:41:15 +01:00
changes to simulate examples
This commit is contained in:
@@ -11,16 +11,15 @@
|
||||
ParticleSystem ps;
|
||||
|
||||
void setup() {
|
||||
size(640, 360);
|
||||
colorMode(RGB, 255, 255, 255, 100);
|
||||
ps = new ParticleSystem(1, new PVector(width/2,height/2,0));
|
||||
size(640,360);
|
||||
smooth();
|
||||
ps = new ParticleSystem(new PVector(width/2,50));
|
||||
}
|
||||
|
||||
void draw() {
|
||||
background(0);
|
||||
ps.addParticle();
|
||||
ps.run();
|
||||
ps.addParticle(mouseX,mouseY);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user