Skip to content

Ali-Sdg90/Spread-Color

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spread Color

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.

2023-05-25 13-39-04_3 2023-05-25 13-39-04_4 2023-05-25 13-39-04_5

Features

  • 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.

Usage

  • 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.

Live Demo

Check out the live demo on JSFiddle: https://jsfiddle.net/Ali_Sdg90/nk148hju/3/

Built With

  • HTML
  • CSS
  • JavaScript

Author