diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2023-10-16 22:59:04 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2023-10-16 22:59:04 -0700 |
commit | f61976c61a29a82feaec740ba09bbec51ce55ba9 (patch) | |
tree | aef77a6457c8f215aad487e51f6d66551c23c0a3 | |
parent | 4b3f3595266729a16a2a5bdb2a480576d332c14c (diff) | |
download | view.love-f61976c61a29a82feaec740ba09bbec51ce55ba9.tar.gz |
use color alpha in button backgrounds
-rw-r--r-- | button.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/button.lua b/button.lua index 55e4b1e..4dfd036 100644 --- a/button.lua +++ b/button.lua @@ -12,7 +12,7 @@ function button(State, name, params) if State.button_handlers == nil then State.button_handlers = {} end - love.graphics.setColor(params.bg.r, params.bg.g, params.bg.b) + love.graphics.setColor(params.bg.r, params.bg.g, params.bg.b, params.bg.a) love.graphics.rectangle('fill', params.x,params.y, params.w,params.h, 5,5) if params.icon then params.icon(params) end table.insert(State.button_handlers, params) |