about summary refs log tree commit diff stats
path: root/app.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-07-11 23:03:27 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-07-11 23:18:26 -0700
commit3850fbac35bb5679ed58753491db4a4cd2267a73 (patch)
treea296ccc5d26f507d38fe4771c453ae4a2ef012c2 /app.lua
parent2e3a85d94be44bfb53554d0e7ba8a36f8e91c605 (diff)
downloadlines.love-3850fbac35bb5679ed58753491db4a4cd2267a73.tar.gz
make colors easier to edit
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 e5be2b0..56b9dba 100644
--- a/app.lua
+++ b/app.lua
@@ -157,6 +157,10 @@ function App.screen.print(msg, x,y)
   end
 end
 
+function App.color(color)
+  love.graphics.setColor(color.r, color.g, color.b, color.a)
+end
+
 App.time = 1
 function App.getTime()
   return App.time