Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oval not working #10

Open
stuaxo opened this issue Nov 14, 2015 · 0 comments
Open

oval not working #10

stuaxo opened this issue Nov 14, 2015 · 0 comments

Comments

@stuaxo
Copy link

stuaxo commented Nov 14, 2015

This is really odd, I was using nodebox-opengl just a couple of days ago, but now if I try and use oval it dies

<ipython-input-3-576dd2e08d01> in <module>()
----> 1 oval(245.0, 784.0, 8, 8)

/mnt/data/home/stu/.virtualenvs/3d/local/lib/python2.7/site-packages/NodeBox_for_OpenGL-1.7-py2.7.egg/nodebox/graphics/context.pyc in ellipse(x, y, width, height, segments, **kwargs)
    631         commands = []
    632         f = 2 * pi / segments
--> 633         v = [(cos(t)/2, sin(t)/2) for t in [i*f for i in range(segments)+[0]]]
    634         for mode in (GL_TRIANGLE_FAN, GL_LINE_LOOP):
    635             commands.append(precompile(lambda:(

TypeError: unsupported operand type(s) for +: 'newrange' and 'list'
stuaxo added a commit to stuaxo/nodebox-opengl that referenced this issue Nov 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant