filmov
tv
Animation Class: Homotopy

Показать описание
source code for the animation:
```
def homotopy(self):
def homotopy_x(x, y, z, t):
alpha = (0.7*x + FRAME_Y_RADIUS)/(FRAME_HEIGHT)
beta = squish_rate_func(smooth, alpha-0.15, alpha+0.15)(t)
def homotopy_y(x, y, z, t):
alpha = (0.7*x + FRAME_X_RADIUS)/(FRAME_WIDTH)
beta = squish_rate_func(smooth, alpha-0.15, alpha+0.15)(t)
text = TextMobject("Homotopy Animation")
circle = Circle()
square = Square()
objs = VGroup(text, circle, square).arrange(RIGHT, buff=1)
for i in range(0, 2):
for i in range(0, 2):
```
```
def homotopy(self):
def homotopy_x(x, y, z, t):
alpha = (0.7*x + FRAME_Y_RADIUS)/(FRAME_HEIGHT)
beta = squish_rate_func(smooth, alpha-0.15, alpha+0.15)(t)
def homotopy_y(x, y, z, t):
alpha = (0.7*x + FRAME_X_RADIUS)/(FRAME_WIDTH)
beta = squish_rate_func(smooth, alpha-0.15, alpha+0.15)(t)
text = TextMobject("Homotopy Animation")
circle = Circle()
square = Square()
objs = VGroup(text, circle, square).arrange(RIGHT, buff=1)
for i in range(0, 2):
for i in range(0, 2):
```