Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Pyglet - Clear Screen
import pyglet
screen = pyglet.window.Window(800,600)
@screen.event
def on_draw():
screen.clear()
if __name__ == "__main__":
pyglet.app.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment