mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 13:49:18 +01:00
fixing up smoke particle system
This commit is contained in:
@@ -11,14 +11,11 @@
|
||||
/* @pjs preload="texture.png"; */
|
||||
|
||||
ParticleSystem ps;
|
||||
Random generator;
|
||||
|
||||
void setup() {
|
||||
size(640,360);
|
||||
generator = new Random();
|
||||
PImage img = loadImage("texture.png");
|
||||
ps = new ParticleSystem(0,new PVector(width/2,height-60),img);
|
||||
smooth();
|
||||
}
|
||||
|
||||
void draw() {
|
||||
|
||||
Reference in New Issue
Block a user