Skip to content
This repository has been archived by the owner on Jul 5, 2022. It is now read-only.

Coding Challenge: Diffusion Reaction - P5.js #31

Closed
rubychilds opened this issue Jun 27, 2016 · 1 comment · Fixed by #32
Closed

Coding Challenge: Diffusion Reaction - P5.js #31

rubychilds opened this issue Jun 27, 2016 · 1 comment · Fixed by #32

Comments

@rubychilds
Copy link
Contributor

rubychilds commented Jun 27, 2016

Just a few things I noticed:

  • Variable c, on line 71, is not used - it's then constrained but not used again. Thought this should maybe be used as part of colour and pixel allocation line 72,75

Thanks!

@rubychilds rubychilds changed the title Coding Challenge: Diffusion Reaction Coding Challenge: Diffusion Reaction - P5.js Jun 27, 2016
@rubychilds
Copy link
Contributor Author

rubychilds commented Jun 27, 2016

Required change:

      c = constrain(c, 0, 255);
      pixels[pix] = c;
      pixels[pix+1] = c;
      pixels[pix+2] = c;
      pixels[pix+3] = 255;

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant