- ]point [- - ]point - ]point [- ]point ]point rotatedcorners stores the xyz coordinates from cube_corners after they've been rotated by rxryand rz amounts rotatedcorners [nonenonenonenonenonenonenonenone rotation amounts for each axis xrotation yrotation zrotation try while truemain program loop rotate the cube along different axes by different amounts xrotation +x_rotate_speed yrotation +y_rotate_speed zrotation +z_rotate_speed for in range(len(cube_corners)) cube_corners[ ][ cube_corners[ ][ cube_corners[ ][ rotatedcorners[irotatepoint(xyzxrotation yrotationzrotation get the points of the cube lines cubepoints [ for fromcornerindextocornerindex in (( )( )( )( )( )( )( )( )( )( )( )( )) fromxfromy adjustpoint(rotatedcorners[fromcornerindex] toxtoy adjustpoint(rotatedcorners[tocornerindex] pointsonline line(fromxfromytoxtoy cubepoints extend(pointsonline get rid of duplicate points cubepoints tuple(frozenset(cubepoints) display the cube on the screen for in range(height) for in range(width) if (xyin cubepoints display full block print(line_charend=''flush=false else display empty space print('end=''flush=false print(flush=false print('press ctrl- to quit 'end=''flush=true time sleep(pause_amountpause for bit clear the screen if sys platform ='win ' project #