Skip to content

Commit

Permalink
Update mySketch.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jcponce committed Jul 11, 2023
1 parent a42615e commit 43f2d18
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions math2400/sketches/noise-terrain-p5js/mySketch.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,20 +65,20 @@ function setup() {

// ------ mesh ------
tileCount = 40;
zScale = 380;
zScale = 290;

// ------ noise ------
noiseXRange = 20;
noiseYRange = 80;
octaves = 4;
falloff = 0.5;

// ------ mesh coloring ------
topColor = color(0, 0, 0);
midColor = color(191,0, 63);
bottomColor = color(0, 0, 0);
strokeColor = color(180, 100, 0);
threshold = 0.10;
// ------ mesh coloring ------
topColor = color(10, 10, 10);
midColor = color(116, 167, 247);
bottomColor = color(0, 0, 0);
strokeColor = color(195);
threshold = 0.10;

// ------ mouse interaction ------
offsetX = 0;
Expand Down Expand Up @@ -111,7 +111,7 @@ function draw(){
rotateX(1.1);
rotateZ(0);

ambientLight(150);
ambientLight(190);

// ------ set view ------
push();
Expand Down

0 comments on commit 43f2d18

Please sign in to comment.