/RubiksCube

Simulation of a Rubik's Cube in Processing

Primary LanguageProcessingBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

README

Rubik's Cube Simulator with Processing

License

This simple simulator gives you all functionality of a Rubik's Cube, but without taking up the desk space!

Rotate the faces by clicking on them (or with the keyboard) and pan around in 3D with the mouse.

By making use of Processing, its really simple to get up and running in a simple 3D graphics environment. This sketch also makes use of PeasyCam by Jonathan Feinberg.

Controls

  • left-click turns a face clockwise
  • right-click turns it the counterclockwise
  • r for the right-hand-side face (blue)
  • l for the left-hand side face (green)
  • f for the front face (red)
  • b for the back face (orange)
  • u for the upward face (yellow)
  • d for the downward face (white)
  • use shift + <key> to turn counterclockwise