From f520f8ff6ffbd36aa4711c541445f6431444df6b Mon Sep 17 00:00:00 2001 From: TastyPancakes Date: Wed, 3 Jul 2024 13:21:41 +0100 Subject: [PATCH] Testing raylib --- LICENSE | 2 +- README.md | 5 ++++- main.py | 20 ++++++++++++++++++++ 3 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 main.py diff --git a/LICENSE b/LICENSE index 599ef8a..524a048 100644 --- a/LICENSE +++ b/LICENSE @@ -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: diff --git a/README.md b/README.md index 80dded6..f480b0b 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ -# Testing-PyRay +# A fluid simulation +Trying to implement a visualization for a fluid simulation. + +Using the python bindings for Raylib. diff --git a/main.py b/main.py new file mode 100644 index 0000000..027351a --- /dev/null +++ b/main.py @@ -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()