Interpolation for vectorized mobjects implemented

This commit is contained in:
Grant Sanderson
2016-04-10 12:34:28 -07:00
parent 330b8870ba
commit 26c5aa8e67
12 changed files with 210 additions and 159 deletions

View File

@ -14,7 +14,7 @@ from scene import Scene
from topics.complex_numbers import *
DEFAULT_PLANE_CONFIG = {
"point_thickness" : 2*DEFAULT_POINT_THICKNESS
"stroke_width" : 2*DEFAULT_POINT_THICKNESS
class SuccessiveComplexMultiplications(ComplexMultiplication):
@ -144,7 +144,7 @@ class DrawSolutionsToZToTheNEqualsW(Scene):
plane = ComplexPlane(**plane_config)
circle = Circle(
radius = radius*zoom_value,
point_thickness = plane.point_thickness
stroke_width = plane.stroke_width
)
solutions = [
radius*np.exp(complex(0, 1)*(2*np.pi*k + theta)/n)
@ -222,7 +222,7 @@ class DrawComplexAngleAndMagnitude(Scene):
Line(
start, end,
color = color,
point_thickness = self.plane.point_thickness
stroke_width = self.plane.stroke_width
)
for start, end, color in zip(
[ORIGIN, point[0]*RIGHT, ORIGIN],