Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(almost) Fully functioning interactive animated cube #2

Merged
merged 7 commits into from
Nov 27, 2012

Conversation

jakevdp
Copy link
Collaborator

@jakevdp jakevdp commented Nov 26, 2012

Here's my progress: I'm pretty excited by it!

Run code/cube_interactive.py to see the cube in action. Faces can be turned using the UDLRFB keys, holding shift for counter-clockwise. Holding 1, 2, etc. will turn a slab at the specified depth. The solve button doesn't do anything sophisticated at the moment: it simply reverses the current list of moves.

A strange "feature" currently is that the cube is just a shell, so you can see through the inner faces when they're part-way turned.

All-in-all, I'm pretty happy with this, and impressed that matplotlib can do this in just a few hundred lines of code!

davidwhogg added a commit that referenced this pull request Nov 27, 2012
(almost) Fully functioning interactive animated cube
@davidwhogg davidwhogg merged commit 0c2d023 into davidwhogg:master Nov 27, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants