From 2e88eed328b7c561cbce8c3ae8faebc694a3983e Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 7 Apr 2018 19:07:54 +0200 Subject: Changed values of colours in mask in newImage --- not/Sprite.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'not') diff --git a/not/Sprite.lua b/not/Sprite.lua index f1d1703..191a7f7 100644 --- a/not/Sprite.lua +++ b/not/Sprite.lua @@ -27,8 +27,8 @@ end function Sprite.newImage (path) local imagedata = love.image.newImageData(path) local transparency = function(x, y, r, g, b, a) - if (r == 0 and g == 128 and b == 64) or - (r == 0 and g == 240 and b == 6) then + if (r == 0 and g == 128/255 and b == 64/255) or + (r == 0 and g == 240/255 and b == 6/255) then a = 0 end return r, g, b, a -- cgit v1.1