fix mixease and preview point line positioning
This commit is contained in:
		
							parent
							
								
									e9dccb863d
								
							
						
					
					
						commit
						ebc5aa1729
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -67,13 +67,13 @@ function self.render() | ||||||
|     -- mixease point |     -- mixease point | ||||||
|     if mode == modes.mix and slider.kget('mix') then |     if mode == modes.mix and slider.kget('mix') then | ||||||
|       love.graphics.setColor(1, 1, 1, 0.2 + self.touchtimer * 0.6) |       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 |     end | ||||||
| 
 | 
 | ||||||
|     -- preview point |     -- preview point | ||||||
|     local t = timer % 1 |     local t = timer % 1 | ||||||
|     love.graphics.setColor(0.4, 0.4, 1, 0.4) |     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 |     -- y = 0 point | ||||||
|     -- todo: this will break with eases that dont have the first point at y0 |     -- todo: this will break with eases that dont have the first point at y0 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue