mirror of
				https://github.com/pocketpy/pocketpy
				synced 2025-10-26 22:40:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			254 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			254 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| import easing
 | |
| 
 | |
| def validate(val):
 | |
|     assert -2 <= val <= 2.0
 | |
|     assert isinstance(val, float)
 | |
| 
 | |
| for k, f in easing.__dict__.items():
 | |
|     if callable(f):
 | |
|         validate(f(0.2))
 | |
|         validate(f(0.5))
 | |
|         validate(f(0.8))
 | |
|         validate(f(1.0))
 |