Testing-PyRay/main.py

21 lines
449 B
Python
Raw Permalink Normal View History

2024-07-03 12:21:41 +00:00
import pyray as pr
from pyray import RAYWHITE, LIGHTGRAY
def main():
pr.init_window(800, 400, "Example window")
pr.set_target_fps(60)
while not pr.window_should_close():
pr.begin_drawing()
pr.clear_background(RAYWHITE)
pr.draw_text("Congrats! You created your first window!",
190, 200, 20, LIGHTGRAY)
pr.end_drawing()
pr.close_window()
if __name__ == '__main__':
main()