webwindow

A Simple WebGL Window for Python

MIT License

Downloads
308
Stars
1

WebWindow

WebWindow is a lightweight window implementation for Python, developed primarily to support the ZenGL documentation, and it can be easily deployed with Pyodide or PyScript

Examples

See WebWindow in action: Live Examples

Usage

Add this line to the pyscript.toml

packages = ["zengl", "webwindow"]
import zengl
from webwindow import WebWindow

window = WebWindow(600, 400)
ctx = zengl.context()

@window.on_render
def render():
    ctx.new_frame()
    ctx.end_frame()

License

Licensed under the MIT License