Meet Labyrinth of Colors - an interactive web application that combines elements of game, art and meditation. At first glance, it presents itself as a grid of black lines forming a random maze on a white background. However, what makes it unique is you. Each click on any corridor is the beginning of a picturesque journey - a soft pastel color begins to slowly fill the space, spreading along the paths like a calm wave.
What's more, you can activate multiple color sources simultaneously. Watch as the different colored streams meet, intertwine and create unique compositions, turning a chaotic structure into a dynamic, living work of art. The process is strangely mesmerizing and relaxing - the perfect way to enjoy a moment of tranquility and creative relaxation.
The app generates the maze in real time and then allows you to interact with it with a simple click. Behind the scenes, there's a flood fill algorithm that makes sure that the color only spreads through the available corridors, creating smooth and natural-looking transitions. The whole thing is built in HTML5 Canvas, which allows the graphics to be dynamically rendered and responsive in the browser.
You can try it out here: Color the Maze