Skip to content

Commit 49a4242

Browse files
committed
reverting changes for examples to work with processing.js processing#184
1 parent 4633593 commit 49a4242

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

content/examples/Topics/Simulate/MultipleParticleSystems/Particle.pde

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Particle {
99
Particle(PVector l) {
1010
acceleration = new PVector(0,0.05);
1111
velocity = new PVector(random(-1,1),random(-2,0));
12-
location = l.copy();
12+
location = l.get();
1313
lifespan = 255.0;
1414
}
1515

content/examples/Topics/Simulate/MultipleParticleSystems/ParticleSystem.pde

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class ParticleSystem {
77

88
ParticleSystem(int num, PVector v) {
99
particles = new ArrayList<Particle>(); // Initialize the arraylist
10-
origin = v.copy(); // Store the origin point
10+
origin = v.get(); // Store the origin point
1111
for (int i = 0; i < num; i++) {
1212
particles.add(new Particle(origin)); // Add "num" amount of particles to the arraylist
1313
}

content/examples/Topics/Simulate/SimpleParticleSystem/Particle.pde

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Particle {
99
Particle(PVector l) {
1010
acceleration = new PVector(0,0.05);
1111
velocity = new PVector(random(-1,1),random(-2,0));
12-
location = l.copy();
12+
location = l.get();
1313
lifespan = 255.0;
1414
}
1515

content/examples/Topics/Simulate/SimpleParticleSystem/ParticleSystem.pde

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class ParticleSystem {
66
PVector origin;
77

88
ParticleSystem(PVector location) {
9-
origin = location.copy();
9+
origin = location.get();
1010
particles = new ArrayList<Particle>();
1111
}
1212

content/examples/Topics/Simulate/SmokeParticleSystem/Particle.pde

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Particle {
1313
float vx = randomGaussian()*0.3;
1414
float vy = randomGaussian()*0.3 - 1.0;
1515
vel = new PVector(vx,vy);
16-
loc = l.copy();
16+
loc = l.get();
1717
lifespan = 100.0;
1818
img = img_;
1919
}

content/examples/Topics/Simulate/SmokeParticleSystem/ParticleSystem.pde

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class ParticleSystem {
99

1010
ParticleSystem(int num, PVector v, PImage img_) {
1111
particles = new ArrayList<Particle>(); // Initialize the arraylist
12-
origin = v.copy(); // Store the origin point
12+
origin = v.get(); // Store the origin point
1313
img = img_;
1414
for (int i = 0; i < num; i++) {
1515
particles.add(new Particle(origin, img)); // Add "num" amount of particles to the arraylist

0 commit comments

Comments
 (0)