diff options
author | Aki <nthirtyone@gmail.com> | 2018-04-07 18:53:31 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2018-04-07 18:53:31 +0200 |
commit | 6cef97b6e9ba6878607b1fff08e42ca19b79914f (patch) | |
tree | 4c74874da741a3a68ca707f0654e2559dca179b4 /not/Button.lua | |
parent | 517625861535f76f1dcb992fff76d23fe4239f7c (diff) | |
download | roflnauts-6cef97b6e9ba6878607b1fff08e42ca19b79914f.zip roflnauts-6cef97b6e9ba6878607b1fff08e42ca19b79914f.tar.gz roflnauts-6cef97b6e9ba6878607b1fff08e42ca19b79914f.tar.bz2 |
Hopefully all uses of setColor now use values in <0,1> range
Diffstat (limited to 'not/Button.lua')
-rw-r--r-- | not/Button.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/not/Button.lua b/not/Button.lua index 3493a84..72823d6 100644 --- a/not/Button.lua +++ b/not/Button.lua @@ -42,9 +42,9 @@ function Button:draw (scale) local quad = self.quads local sprite = self.sprite if self:isEnabled() then - love.graphics.setColor(255, 255, 255, 255) + love.graphics.setColor(1, 1, 1, 1) else - love.graphics.setColor(140, 140, 140, 255) + love.graphics.setColor(.6, .6, .6, 1) end love.graphics.draw(sprite, quad.button.normal, x*scale, y*scale, 0, scale, scale) if self.focused then |