Lars Vandenbergh's CubeZone

Speedcubing taken one step further

ImageCube

A PHP script for generating static 3D views of the 3x3x3 Rubik's Cube

ImageCube is a PHP script I wrote for generating static images of the 3x3x3 Rubik's Cube. It can be used for building websites explaining methods or for illustrating certain move sequences. The main advantages of it are that:

Examples

Example 1: Illustrating the CFOP system
Scrambled cube Cross solved F2L solved F2L + OLL solved Cube solved
Scrambled cube Cross solved F2L solved F2L + OLL solved Cube solved


Example 2: Various sizes
50x50 pixels 75x75 pixels 100x100 pixels 150x150 pixels 200x200 pixels
50x50 pixels 75x75 pixels 100x100 pixels 150x150 pixels 200x200 pixels


Example 3: Ignoring parts of the cube
Only showing cross + pair Insert final pair and orient edges Only showing corners
Only showing cross + pair Insert final pair and orient edges Only showing corners

How to use it

The images above are all generated by imagecube.php. This script accepts two input paramters:

So to generate a cube with the F2L solved, like the one shown above, one could use:

<img src="http://qblog.be/imagecube/imagecube.php?stickers=yyoyygybbbyrrrrrrryyygggggg&size=100">

For more examples you can check out the source code of this HTML page. You can also use this direct link to the ImageCube script and play around with the parameters to see what effect it has.

Source code