Add CONFIG parameter to allow disabling smoothing

This commit is contained in:
techdude
2021-01-31 18:48:48 -07:00
parent f934bdc61e
commit 384304e92b

View File

@ -12,6 +12,7 @@ class ParametricFunction(VMobject):
"dt": 1e-8,
# TODO, be smarter about figuring these out?
"discontinuities": [],
"smoothing": True,
}
def __init__(self, function=None, **kwargs):
@ -73,6 +74,7 @@ class ParametricFunction(VMobject):
if len(points) > 0:
self.start_new_path(points[0])
self.add_points_as_corners(points[1:])
if self.smoothing:
self.make_smooth()
return self