The Cosmic Dance is a artistic representation of bitcoin current market state, as more volume is transacted, harder is the dance.
The cosmic dancer dances faster or slower, over more or less bitcoin particles according the current 24h market volume. On the page bottom a volume levels shows the current volume, clicking on each volume (circle) simulates the selected volume. Refreshing the page, reloads the market data from the api.
This piece tracks the bitcoin market volume data trought the Coingecko API, using the API rules for determining global market values from all exchanges.
The last 15 days of data is collected establishing a min. and max. value for 24hours volume in each data point. After that a percentage value is determined based on that range and the current value.