Library for drawing the Rubik's Cube. https://github.com/timjb/rubiks-cube

Latest on Hackage:

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

MIT licensed by Tim Baumann
Maintained by tim@timbaumann.info


Hackage version Hackage dependencies Travis Status Code Climate

Haskell library for drawing the Rubik’s Cube.

Move sequence


$ cabal install diagrams-rubiks-cube


See the docs on Hackage.

For an example, take a look at this beginner’s manual for solving the Rubik’s Cube and its source code.


Change Log - 2017-12-09

  • Remove artefacts caused by square line joins
  • Proper arrow scaling
  • Shorter arrows for back layer moves
  • Make arrow colour configurable
  • Nicer default colours - 2016-10-27

  • Updated upper bounds - 2015-06-01

  • Generalized numeric type n in Diagrams.RubiksCube.Draw (from Double)
  • Implemented arrows for moves of back side. - 2015-05-01

  • Added change log
  • Upgraded to diagrams-1.3 - 2015-03-10

  • Initial release
comments powered byDisqus