glut.glutInit(sys.argv) glut.glutInitDisplayMode(glut.GLUT_DOUBLE | glut.GLUT_RGB | glut.GLUT_DEPTH) glut.glutInitWindowSize(800, 800) glut.glutCreateWindow("Antialiased thick polylines") glut.glutDisplayFunc(on_display) glut.glutReshapeFunc(on_reshape) glut.glutKeyboardFunc(on_keyboard) glut.glutIdleFunc(on_idle) t0, frames, t = 0, 0, 0 t0 = glut.glutGet(glut.GLUT_ELAPSED_TIME) atlas = DashAtlas() collection = LineCollection(atlas) vertices = star(n=5) collection.append(vertices, color=(0, 0, 0, 1), linewidth=20, translate=(400, 400), scale=350, dash_pattern='densely dashed', dash_caps=('>', '<')) collection.append(vertices, color=(0, 0, 0, 1), linewidth=20, translate=(400, 400), scale=250, dash_pattern='dotted', dash_caps=('(', ')'))