A mesmerizing real-time color visualization system that transforms random HTML colors into beautiful streaming art.
Color Sprayer is a dynamic web application that generates, categorizes, and visualizes HTML colors in real-time. Watch as random colors are sprayed across your screen, automatically sorted into their closest primary color groups, creating an ever-growing canvas of digital art.
- 🌈 Real-time color generation and streaming
- 🎨 Intelligent color categorization
- 📊 Live statistics and counters
- 🔄 WebSocket-powered updates
- 📈 Auto-expanding color canvases
- 💾 Persistent statistics
- 🚀 Redis-backed message queue
- Docker
- Docker Compose
docker-compose up --build
That's it! Visit http://localhost:3000
to see the magic happen. ✨
docker-compose up --build
Go to http://localhost:3000 to see the magic happen. ✨
- 🔄 Refresh page: Reset visualization
- 📊 Stats auto-update every second
- 🖼 Canvases grow automatically
- 🎨 Colors are categorized in real-time
Your colors will be sorted into these primary groups:
🔴 Red 🟠 Orange 💛 Yellow
💚 Green 🔵 Blue 💜 Purple
💗 Pink 🤎 Brown ⚪️ White
⚫️ Black 🔘 Gray
# Start services
docker-compose up -d
# View logs
docker-compose logs -f
# Stop services
docker-compose down
# Rebuild
docker-compose up --build
# Reset everything
docker-compose down -v
graph LR
A[Producer] -->|Colors| B[Redis Queue]
B -->|WebSocket| C[Browser]
C -->|Display| D[Color Canvases]
- Producer: Generates random HTML colors
- Redis Queue: Message broker
- WebSocket: Real-time communication
- Browser: Visualization and categorization
- 🎨 Producer generates random HTML colors
- 📥 Colors enter Redis queue
- 🔄 WebSocket broadcasts to clients
- 🎯 Colors are categorized by RGB distance
- 🖼 Each category displays in its canvas
- 📈 Stats update in real-time
color-sprayer
├── app (NestJS)
│ └── 🚀 Port 3000
└── redis
└── 💾 Port 6379
# Redis connection issues
docker-compose restart redis
# Application issues
docker-compose restart app
# Check status
docker-compose ps
# View app logs
docker-compose logs -f app
- Each canvas efficiently manages its own memory
- Automatic cleanup of old data
- Optimized WebSocket connections
- Efficient color categorization algorithm
Contributions welcome! Feel free to:
- 🐛 Report bugs
- 💡 Suggest features
- 🔧 Submit PRs
MIT License - feel free to use and modify!
Made with ❤️ and lots of 🎨