This repository has been archived on 2025-06-21. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
raylib-python-cffi/examples/contrib/core_basic_window.py

11 lines
290 B
Python

import pyray
pyray.init_window(800, 450, b"Hello Raylib [pyray]")
while not pyray.window_should_close():
pyray.begin_drawing()
pyray.clear_background(pyray.RAYWHITE)
pyray.draw_text(b"Hello, world!", 190, 200, 20, pyray.DARKGRAY)
pyray.end_drawing()
pyray.close_window()