Hi everybody,
new member of the group here. I just started recently using pyglet, and 
while I find it useful and really cool, I'm having some strange problems I 
can't seem to debug.
While running this code:

> import pyglet as pyg
>
>
>> window = pyg.window.Window(width= 500, resizable= True)
>
> y = 0
>
>
>> @window.event
>
> def on_draw():
>
>     for x in range(0, window.width):
>
>         pyg.graphics.draw(2, pyg.gl.GL_LINES, ('v2i', (x, 0, x, 
>> window.height)), ('c3f', (1, 1, 1)*2))
>
>
>>     pyg.app.run()
>
>
Some strange black bars appear. They seem to follow a particular pattern, 
because changing the width of the window makes them change in number and 
distance among them, as in the pictures below:

<https://lh3.googleusercontent.com/-hNlV0PJf3oQ/WdJ4-gyoftI/AAAAAAAAZfk/kB_cgUhSvKEZr-JgzqSRKOp6rvlgIPvFACLcBGAs/s1600/screenshot.png>

<https://lh3.googleusercontent.com/-F1E9gpbgokM/WdJ5Fdkm3aI/AAAAAAAAZfo/TaZLsmv2k3AwDTehEE4fnej9J9SZ3G4ywCLcBGAs/s1600/screenshot.png>

<https://lh3.googleusercontent.com/-hGGIZj8_GB4/WdJ5N5cSSII/AAAAAAAAZfs/YWrEgl34F5E2LjkSHq1UQf5g-TyGNW31wCLcBGAs/s1600/screenshot.png>

Do you know why this happens? I tried a lot of stuff, but nothing works...

Thanks a lot,
have a nice day.

Mattia

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to