Replace make_approximately_smooth with make_smooth

This commit is contained in:
Grant Sanderson 2023-01-19 11:34:47 -08:00
parent 134b8403b4
commit 8d31db7a45
3 changed files with 4 additions and 4 deletions

View file

@ -2968,7 +2968,7 @@ class ShowJuliaSetPoint(TwoToMillionPoints):
if self.show_disk:
disk.generate_target()
disk.target.apply_function(func)
disk.target.make_approximately_smooth()
disk.target.make_smooth(approx=True)
anims.append(MoveToTarget(disk, path_arc=path_arc))
if disk.target.get_height() > frame.get_height():
anims.extend([
@ -3170,7 +3170,7 @@ class AboutJuliaDisks(AboutFatouDisks):
for n in range(5):
new_disk = disks[-1].copy()
new_disk.apply_complex_function(lambda z: z**2 + c)
new_disk.make_approximately_smooth()
new_disk.make_smooth(approx=True)
disks.add(new_disk)
for disk in disks:

View file

@ -453,7 +453,7 @@ class DecomposeAudioSegment(Scene):
# Reconstruct
approx_wave = graph.copy() # Cheating
approx_wave.set_points_smoothly(graph.get_points()[::150], true_smooth=True)
approx_wave.set_points_smoothly(graph.get_points()[::150])
approx_wave.set_stroke(TEAL, 3, 1.0)
self.play(

View file

@ -239,7 +239,7 @@ class ODEThumbnail(Scene):
points.append(points[-1] + dt * func(points[-1]))
line = VMobject()
line.set_points_smoothly(points, true_smooth=True)
line.set_points_smoothly(points)
line.set_stroke([WHITE, WHITE, BLACK], width=[5, 1])
# line.set_stroke((BLUE_C, BLUE_E), width=(10, 1))