While you move your mouse over BODY element, mouse position is determined, RGB color is calculated and displayed as a background color of a BODY element. Color history is also displayed as a set of colored tiles.
- generating RGB color based on mouse location
- dynamically building history of generated colors
- HTML
- CSS
- JavaScript
Live demo: click here
