about summary refs log tree commit diff stats
path: root/app.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-09-18 01:26:20 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-09-18 01:26:20 -0700
commit89b30a62efda3aa662826801e3e8d70779996569 (patch)
treeb4f340beb7a8e59e1194f57ad37f1cd69b62d1fc /app.lua
parentbc464fe6f1fc99af269c20e87e7be38ec26de2b3 (diff)
downloadtext.love-89b30a62efda3aa662826801e3e8d70779996569.tar.gz
support mouse clicks in file navigator
Diffstat (limited to 'app.lua')
-rw-r--r--app.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/app.lua b/app.lua
index 994f0c7..62ecd38 100644
--- a/app.lua
+++ b/app.lua
@@ -194,6 +194,10 @@ function App.color(color)
   love.graphics.setColor(color.r, color.g, color.b, color.a)
 end
 
+function colortable(app_color)
+  return {app_color.r, app_color.g, app_color.b, app_color.a}
+end
+
 App.time = 1
 function App.getTime()
   return App.time