mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Updated examples
This commit is contained in:
@@ -30,7 +30,7 @@ void setup() {
|
||||
|
||||
// The particle system is stored in a PShape3D object set to
|
||||
// POINT_SPRITES mode
|
||||
particles = createShape(numParticlesTotal, POINT_SPRITES, DYNAMIC);
|
||||
particles = (PShape3D)createShape(numParticlesTotal, PShape3D.newParameters(POINT_SPRITES, DYNAMIC));
|
||||
particleLifetime = numParticlesTotal / numParticlesPerFrame;
|
||||
lifetimes = new int[numParticlesTotal];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user