Reframe Mobject, VMobject and SurfaceMobject with a data map

This commit is contained in:
Grant Sanderson
2021-01-11 10:57:23 -10:00
parent b3335c65fb
commit 9314dfd933
10 changed files with 276 additions and 428 deletions

View File

@ -74,8 +74,8 @@ def interpolate(start, end, alpha):
sys.exit(2)
def set_array_by_interpolation(arr, arr1, arr2, alpha):
arr[:] = interpolate(arr1, arr2, alpha)
def set_array_by_interpolation(arr, arr1, arr2, alpha, interp_func=interpolate):
arr[:] = interp_func(arr1, arr2, alpha)
return arr