diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2023-10-16 22:53:26 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2023-10-16 22:57:46 -0700 |
commit | 4b3f3595266729a16a2a5bdb2a480576d332c14c (patch) | |
tree | 8776a614abf1d0621284c2fb4808bcf59d1f2ed8 /app.lua | |
parent | ea4a8379fe577207509719af41491190035fc8fa (diff) | |
download | lines.love-4b3f3595266729a16a2a5bdb2a480576d332c14c.tar.gz |
clearer API for drawing a button
Make it more obvious that the color passed in is just for the background. The icon will do the rest. r/g/b keys are more consistent with App.color().
Diffstat (limited to 'app.lua')
-rw-r--r-- | app.lua | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/app.lua b/app.lua index 5e3301f..cf89a37 100644 --- a/app.lua +++ b/app.lua @@ -368,10 +368,6 @@ 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 - -- prepend file/line/test function prepend_debug_info_to_test_failure(test_name, err) local err_without_line_number = err:gsub('^[^:]*:[^:]*: ', '') |