CTAN Comprehensive TeX Archive Network

Directory graphics/pgf/contrib/cubedraw

README.md

cubedraw

Pictures of the Rubik's Cube in which every piece is drawn whole.

The cubedraw package draws a whole Rubik's Cube, all 54 stickers, in one flat picture, with one command:

\cubeflat[scale=2]{%
  WWWWWWWWWOOOOOOOOOGGGGGGGGGRRRRRRRRRBBBBBBBBBYYYYYYYYY}

The state is 54 letters, the colours of the stickers face by face (U, L, F, R, B, D), each face row by row as in the usual net. The side faces are drawn as in the net, and U and D as strips above and below them, so the stickers of every corner and every edge touch. Corners, edges and centres have different shapes. The package needs TikZ. See cubedraw-doc.pdf for the details.

The coordinates of the shapes are computed by a Python script, diagrams.py, in https://github.com/LuisRusso-INESC-ID/Rubicks-Count, the programs of a survey of human methods for the Rubik's Cube.

Files

  • cubedraw.sty: the package.
  • cubedraw-doc.tex, cubedraw-doc.pdf: the documentation.
  • LICENSE: the MIT License.

Author

Luís M. S. Russo. Report problems and suggestions at https://github.com/LuisRusso-INESC-ID/Rubicks-Count/issues.

Written with the help of Claude, an AI assistant, and reviewed by the author.

Licence

Copyright (c) 2026 Luís M. S. Russo. Released under the MIT License; see the file LICENSE.

Download the contents of this package in one zip archive (259.8k).

CubeDraw – Pictures of the Rubik’s Cube in which every piece is drawn whole

This package draws a whole Rubik’s Cube, all 54 stickers, in one flat picture, from a string of 54 colour letters. The side faces are drawn as in the usual net, and U and D as strips, so the stickers of every corner and edge touch, and corners, edges and centres have different shapes.

PackageCubeDraw
Bug tracker
Repository
Version1.0 2026-12-03
LicensesMIT License
Copyright2026 Luís M. S. Russo
MaintainerLuís M. S. Russo
Contained inTeX Live as cubedraw
TopicsPGF
Puzzle
...
Guest Book Sitemap Contact Contact Author