Fading Grid
example p5.js javascript arraysThis sketch uses a 2D array to hold values, and decreases changes those values to show a fading grid of cells.
Edit this code in the p5.js editor.
Remix Ideas
- Change the number of cells, or their colors.
- Give each cell a random color.
- Instead of resetting a cell when the user moves their mouse, reset a random cell every frame.
Comments and Questions
Happy Coding is a community of folks just like you learning about coding.
Do you have a comment or question? Post it here!