-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtest.py
More file actions
20 lines (14 loc) · 677 Bytes
/
test.py
File metadata and controls
20 lines (14 loc) · 677 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import glm
from RubikNotes import RubiksCube, PerspectiveView, TopView
cube = RubiksCube()
# cube.exec_seq("z2U'DF'BR'LU'D")
# cube.exec_seq("RUR'U'F'U2FURUR'", reverse=True) # OLL 36
cube.exec_seq("(RU'U')(R2'FRF')U2(R'FRF')", reverse=True)
p_view = PerspectiveView()
p_view.set_camera(256, 256, 45, glm.lookAt(glm.vec3(8.0,6.0,10.0), glm.vec3(0.0,-0.5,0.0), glm.vec3(0.0, 1.0, 0.0)))
# p_view.render(cube, 'perspective.png')
t_view = TopView()
t_view.set_size(256)
# t_view.render(cube, 'top.png')
# cube.render_seq(p_view, "(RU'U')(R2'FRF')U2(R'FRF')", filename="full.png")
cube.render_seq(p_view, "(RU'U')(R2'FRF')U2(R'FRF')", filename="grouped.png", grouped = True)