A JavaScript implementation of a color spreading. The game consists of a grid of blocks with a specified size, and a start point. When the start point is clicked, the surrounding blocks change color according to a specified speed and spread until they reach the edges of the grid.
- Customizable game size, spread speed, color, accuracy, etc.
- Option to display the block numbers, start points, debug information, etc.
- Option to change the spread direction to be one-way or multi-directional.
- Clone the repository or download the files.
- Open the
index.html
file in a web browser. - Set the desired options in the game settings.
- Click on a block to select it as the start point.
Check out the live demo on JSFiddle: https://jsfiddle.net/Ali_Sdg90/nk148hju/3/
- HTML
- CSS
- JavaScript