Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
MRo47 committed May 19, 2024
1 parent b6f33e0 commit f29c00c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions flow-fields/particles.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ class Particle {
}
}
checkEdges() {
//float distance = dist(width/2, height/2, loc.x, loc.y);
//if (distance>150) {
if (this.loc.x < 0 || this.loc.x > width || this.loc.y < 0 || this.loc.y > height) {
this.loc.x = random(width * x_scale);
this.loc.y = random(height);
Expand Down
5 changes: 3 additions & 2 deletions flow-fields/sketch.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@

var num = 2000;
var noiseScale = 800, noiseStrength = 1;
var noiseScale = 800;
var noiseStrength = 1;
var particles = [num];
var x_scale = 1.5;
var speed = 1.618; // random(0.5, 2);
var speed = 2; // random(0.5, 2);
var started = false;
var sound;

Expand Down

0 comments on commit f29c00c

Please sign in to comment.