CubeScribe Code
Render Rubiks Cube OLL and PLL Algorithm Diagrams with HTML5 & JS
Brought to you by:
fvanhoof
This is the readme file for the CubeScribe JavaScript library. CubeScribe provides functions to draw Rubiks Cube Algorithm diagrams. This script utilizes the HTML 5 canvas element to dynamically draw each diagram. CubeScribe is capable of drawing either an OLL or PLL diagram. The OLL view provides a view of a cube face were the cubies are either the color of the face or a neutral color. Any neutral colored cubies have a popped edge representing the location of the correct side. The PLLview provides a view of a cube face with all cubies colored with the face color and arrows representing the direction of movement of each piece. The arrows can have one arrow head or arrow heads on both ends. Changes 02/10/2013 - Added formatAlgorithm funtion. This function adds HTML markup to algorithm strings in order to emphisize Prime, Double and Rotation moves. The function assumes the algorithms are in Singmaster notation. 10/17/2012: Version 1.2 - Changed the class name from cubeScribe to CubeScribe to align with JavaScript best practices. - Increased the amount of documentation comments and made it work with JavaDoc. 09/29/2012: Version 1.1 - Changed the drawOllView function to use an enumeration instead of forcing the developer to remember the integers. - Updated CubeScribe.html to reflect change listed above. - Other changes to improve overall performance. 09/17/2012: Version 1.0: - Initial version