21 lines
449 B
Python
21 lines
449 B
Python
|
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()
|