A Simple WebGL Window for Python
MIT License
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
See WebWindow in action: Live Examples
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()
Licensed under the MIT License