Testing raylib
This commit is contained in:
parent
90c7979039
commit
f520f8ff6f
2
LICENSE
2
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:
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1,5 @@
|
||||||
# Testing-PyRay
|
# A fluid simulation
|
||||||
|
|
||||||
|
Trying to implement a visualization for a fluid simulation.
|
||||||
|
|
||||||
|
Using the python bindings for Raylib.
|
||||||
|
|
|
@ -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()
|
Loading…
Reference in New Issue