mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Add CONFIG parameter to allow disabling smoothing
This commit is contained in:
parent
f934bdc61e
commit
384304e92b
1 changed files with 3 additions and 1 deletions
|
@ -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,7 +74,8 @@ class ParametricFunction(VMobject):
|
|||
if len(points) > 0:
|
||||
self.start_new_path(points[0])
|
||||
self.add_points_as_corners(points[1:])
|
||||
self.make_smooth()
|
||||
if self.smoothing:
|
||||
self.make_smooth()
|
||||
return self
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue