Skip to content

Commit

Permalink
Merge pull request nature-of-code#61 from matthewmazurek/master
Browse files Browse the repository at this point in the history
noise is now working
  • Loading branch information
shiffman authored Apr 25, 2017
2 parents af27580 + a35c77d commit cc73e99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chp06_agents/NOC_6_04_FlowField/flowfield.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function FlowField(r) {
this.init = function() {
// Reseed noise so we get a new flow field every time
// Need to get noise working
// noiseSeed(Math.floor(random(10000)));
noiseSeed(Math.floor(random(10000)));
var xoff = 0;
for (var i = 0; i < this.cols; i++) {
var yoff = 0;
Expand Down
2 changes: 1 addition & 1 deletion chp06_agents/NOC_6_04_FlowField/sketch.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var vehicles = [];

function setup() {

var text = createP("Hit space bar to toggle debugging lines.<br>Click the mouse to generate a new flow field (<a href=\"https://github.com/shiffman/The-Nature-of-Code-Examples-p5.js/issues/12\">not working yet</a>).");
var text = createP("Hit space bar to toggle debugging lines.<br>Click the mouse to generate a new flow field.");
text.position(10,365);

createCanvas(640, 360);
Expand Down

0 comments on commit cc73e99

Please sign in to comment.