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/tests/test_hello_world.py
2022-08-11 21:58:54 +01:00

10 lines
379 B
Python

from pyray import *
init_window(800, 450, "Hello")
while not window_should_close():
begin_drawing()
clear_background(WHITE)
font = load_font_ex("/home/richard/pycharm-2022.1.4/jbr/lib/fonts/DroidSans.ttf", 30, None, 0)
draw_text_ex(font, "hellow font", (300, 300), 30, 0, BLACK)
draw_text("Hello world", 190, 200, 20, VIOLET)
end_drawing()
close_window()