Closed lymacasm closed 9 years ago
Implemented using divs and canvases in graphics.py, square.html, and border.html. square.html creates a div with a canvas and some java code that fills the canvas with a specified colour. border.html creates a border around each face, to more easily distinguish the faces. graphics.py implement Flask's render_template to create a 2D Rubik's Cube display.
The dimensions class in globals.py can have it's values adjusted to reposition the cube. The colors class in globals.py can have it's values adjusted to change to colours of the pieces. The faceColors can have it's values adjusted to change the order of the faces.
Write a function, that when passed an object of cube class, will render the object into something that can be displayed in an HTML document.