cubing / alg.cubing.net

▶️ Multi-purpose puzzle viewer – the old generation of alg/reconstruction viewing and sharing. Superseded by Twizzle.
https://alg.cubing.net
Other
184 stars 32 forks source link

alg.cubing.net Javascript API #104

Open lgarron opened 10 years ago

lgarron commented 10 years ago

Eventually, the animation and state in alg.cubing.net need to be separated, and some of it moved into twisty.js

It would definitely be useful to have an API to generate links, though:

generateLink({
  alg: "R U R' U R U2 R'",
  type: "alg"
})

Preferably, this would also be available as a Javascript snippet with a minimal amount of code to handle, e..g URL encoding.