This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int NUM = 2000; | |
ParticleVec3[] particles = new ParticleVec3[NUM]; | |
void setup() { | |
size(1280, 720, P3D); | |
frameRate(60); | |
for (int i = 0; i < NUM; i++) { | |
particles[i] = new ParticleVec3(); | |
particles[i].radius = 4.0; | |
particles[i].position.set(random(width), random(height), random(height)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: gpl-3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: gpl-3.0 |