mirror of
https://github.com/3b1b/videos.git
synced 2025-09-18 21:38:53 +00:00
Replace make_approximately_smooth with make_smooth
This commit is contained in:
parent
134b8403b4
commit
8d31db7a45
3 changed files with 4 additions and 4 deletions
|
@ -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:
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue