Commits

Roberto Gea committed e87893f

add interpolate_circle_range

Comments (0)

Files changed (1)

 
 
 def ease_in_cubic(t, start, end):
-    return custom_curve(t, (0.550, 0.085, 0.680, 0.530), start, end)
-
-
-def ease_in_cubic(t, start, end):
     return custom_curve(t, (0.550, 0.055, 0.675, 0.190), start, end)
 
 
     return custom_curve(t, (0.770, 0.000, 0.175, 1.000), start, end)
 
 
-def ease_in_out_cubic(t, start, end):
-    return custom_curve(t, (0.645, 0.045, 0.355, 1.000), start, end)
-
-
-def ease_in_out_quart(t, start, end):
-    return custom_curve(t, (0.770, 0.000, 0.175, 1.000), start, end)
-
-
 def ease_in_out_quint(t, start, end):
     return custom_curve(t, (0.860, 0.000, 0.070, 1.000), start, end)
 
     for i in range(steps):
         t = i / nsteps
         yield func(t, start, end)
+
+
+def inerpolate_circle_range(steps, func=linear):
+    for radian in interpolate_range(0, 2 * math.pi, steps, func):
+        yield int(round(math.degrees(radian), 0))