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