summaryrefslogtreecommitdiff
path: root/examples/graphics.lua
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2025-08-07 11:20:02 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2025-08-07 11:20:02 +0200
commit47afbbc5fb29272185d9c56de5943f889ca63723 (patch)
treee8aa65f4743295c441e5f326d1348d3c1a42d386 /examples/graphics.lua
parentbb6eaf9e4ffdaa038cce11c6225584d54a59b131 (diff)
downloadbidi-47afbbc5fb29272185d9c56de5943f889ca63723.tar.gz
Added draw_rect and draw_text
Diffstat (limited to 'examples/graphics.lua')
-rw-r--r--examples/graphics.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/graphics.lua b/examples/graphics.lua
index cd1ee12..981c848 100644
--- a/examples/graphics.lua
+++ b/examples/graphics.lua
@@ -4,6 +4,10 @@ set_fps(60)
while window_running() do
begin_drawing()
clear_window(color.BLACK)
+
+ draw_rect(100, 100, 300, 200, color.YELLOW)
+ draw_text("YOOOOO", 10, 10, 20, color.VIOLET)
+
draw_info()
end_drawing()
end