ITADN
davidwhogg/MagicCube
davidwhogg/MagicCube · 文件 下载 ZIP
文件最后提交记录最后更新时间
README.md
以下内容由 AI 翻译,如有问题请点此提交 issue 反馈

魔方

这种事总有一天会发生。快有人来阻止我!

.. image:: http://4.bp.blogspot.com/-iruqaXDstKk/UKBejowDVkI/AAAAAAAAZkM/c2tir0qcexQ/s400/test04.png :alt: 魔方的不同视角 :align: left

作者

  • David W. Hogg(纽约大学)
  • Jacob Vanderplas(华盛顿大学)

使用方法

交互式魔方

To use the matplotlib-based interactive cube, run 

     python code/cube_interactive.py

If you want a cube with a different number of sides, use e.g.

     python code/cube_interactive.py 5

This will create a 5x5x5 cube

This code should currently be considered to be in beta --
there are several bugs and the GUI has an incomplete set of features

Controls
********
- **Click and drag** to change the viewing angle of the cube.  Holding shift
  while clicking and dragging adjusts the line-of-sight rotation.
- **Arrow keys** may also be used to change the viewing angle.  The shift
  key has the same effect
- **U/D/L/R/B/F** keys rotate the faces a quarter turn clockwise.  Hold the
  shift key to rotate counter-clockwise.  Hold a number i to turn the slab
  at a depth i (e.g. for a 3x3 cube, holding "1" and pressing "L" will turn
  the center slab).

Other
~~~~~
还有更多工具可用——目前为 RTFSC。

许可证
-------

所有内容版权归 2012 年的作者所有。
**Magic Cube** 采用 *GPLv2 License* 进行许可。
更多信息请参见 `LICENSE.txt` 文件。