fix mixease and preview point line positioning

This commit is contained in:
jill 2021-09-19 15:24:27 +03:00
parent e9dccb863d
commit ebc5aa1729
1 changed files with 2 additions and 2 deletions

View File

@ -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