Skip to content

Commit

Permalink
do not scale based on size
Browse files Browse the repository at this point in the history
  • Loading branch information
MRo47 committed May 19, 2024
1 parent 725791c commit db2f16c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions flow-fields/particles.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ class Particle {
this.speed = _speed;
this.color = color(random(0, 200), random(0, 200), 255);
this.col_switch = false;
let max_d = max(width, height);
this.loc.z = random(0.0005 * max_d, 0.004 * max_d);
this.loc.z = random(1, 8);
}
run() {
this.move();
Expand Down
4 changes: 2 additions & 2 deletions flow-fields/sketch.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

let fps = 30;
var num = 2000;
var noiseScale = 800;
var noiseStrength = 2;
Expand All @@ -13,7 +13,7 @@ function preload() {
}

function setup() {
frameRate(30);
frameRate(fps);
getAudioContext().suspend();
createCanvas(windowWidth, windowHeight);
noStroke();
Expand Down

0 comments on commit db2f16c

Please sign in to comment.