From ebc5aa17299b090d074b55d3ff393e4a7886e224 Mon Sep 17 00:00:00 2001 From: jill Date: Sun, 19 Sep 2021 15:24:27 +0300 Subject: [PATCH] fix mixease and preview point line positioning --- src/graph.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/graph.lua b/src/graph.lua index a0165e1..e904b7f 100644 --- a/src/graph.lua +++ b/src/graph.lua @@ -67,13 +67,13 @@ function self.render() -- mixease point if mode == modes.mix and slider.kget('mix') then love.graphics.setColor(1, 1, 1, 0.2 + self.touchtimer * 0.6) - love.graphics.line(x + margin + slider.kvalue('mix') * w, y, x + margin + slider.kvalue('mix') * w, y + h) + love.graphics.line(x + slider.kvalue('mix') * w, y, x + slider.kvalue('mix') * w, y + h) end -- preview point local t = timer % 1 love.graphics.setColor(0.4, 0.4, 1, 0.4) - love.graphics.line(x + margin + t * w, y, x + margin + t * w, y + h) + love.graphics.line(x + t * w, y, x + margin + t * (w - margin * 2), y + h) -- y = 0 point -- todo: this will break with eases that dont have the first point at y0