diff options
author | heav <hheav3@gmail.com> | 2023-03-30 10:34:00 +0000 |
---|---|---|
committer | heav <hheav3@gmail.com> | 2023-03-30 10:34:00 +0000 |
commit | b464b71f52ac6403c39d2b65ed734f72f0371111 (patch) | |
tree | e4ec7df58267973c96b990cd458df17ce9853491 | |
parent | 71f5e91c2ef64aabf2c6868c6a35fc0f403ef53f (diff) |
hell.
-rw-r--r-- | game/gfx.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/game/gfx.lua b/game/gfx.lua index 76fd6a2..53fe63b 100644 --- a/game/gfx.lua +++ b/game/gfx.lua @@ -48,7 +48,9 @@ function M:draw_square(block, x, y, block_size, shadow) love.graphics.setColor(1, 1, 1, shadow and 0.2 or 1) local hueshift = self.assets.shader.hueshift love.graphics.setShader(hueshift) - hueshift:send("colorize_to", colors[block] or {0, 0, 1}) + local hsv = colors[block] or {0, 0, 1} + + hueshift:send("colorize_to",{(hsv[1] + love.timer.getTime()/5) % 1, math.sin(math.asin(hsv[2])+hsv[1]*math.pi*2+love.timer.getTime()/5), hsv[3]}) local img = self.assets.img.block local img_w, img_h = img:getDimensions() |