Skip to content

oval not working #10

@stuaxo

Description

@stuaxo

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions