This sketch uses a 2D array to hold values, and decreases changes those values to show a fading grid of cells.
- 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!