React/TypeScript application that visualizes the flood fill algorithm on a colored pixel grid.
- generate a random or empty grid
- choose a fill color
- run flood fill from a selected cell
- draw pixel by pixel
- play the propagation step by step
- pause and resume the animation
- resize the grid from
1x1to26x26
- React 19
- TypeScript
- Vite
- Vitest
- ESLint
src/
components/ UI components
hooks/ Reusable React logic
services/ Algorithms and pure functions
The main logic is concentrated in src/services/floodFill.ts and src/services/grille.ts, with associated unit tests.
npm installnpm run devnpm run test
npm run lint
npm run build- a clean implementation of a classic algorithm
- a functional approach to grid transformations
- unit tests on the core logic
- a simple but readable interface for visualizing the execution