Siteswap generator and animator in Javascript