Testing raylib

This commit is contained in:
Eduardo Cueto-Mendoza 2024-07-03 13:21:41 +01:00
parent 90c7979039
commit f520f8ff6f
3 changed files with 25 additions and 2 deletions

View File

@ -1,4 +1,4 @@
Copyright (c) 2024 TastyPancakes. Copyright (c) 2024 Eduardo Cueto-Mendoza.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

View File

@ -1,2 +1,5 @@
# Testing-PyRay # A fluid simulation
Trying to implement a visualization for a fluid simulation.
Using the python bindings for Raylib.

20
main.py Normal file
View File

@ -0,0 +1,20 @@
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()