mirror of
https://github.com/3b1b/manim.git
synced 2025-07-28 20:43:56 +08:00
Fixed make_jagged
This commit is contained in:
@ -519,7 +519,11 @@ class VMobject(Mobject):
|
|||||||
return self
|
return self
|
||||||
|
|
||||||
def make_jagged(self):
|
def make_jagged(self):
|
||||||
return self.change_anchor_mode("corners")
|
anchors = self.get_start_anchors()
|
||||||
|
last_point = self.get_last_point()
|
||||||
|
return self.set_points_as_corners(
|
||||||
|
[*anchors, last_point]
|
||||||
|
)
|
||||||
|
|
||||||
def add_subpath(self, points):
|
def add_subpath(self, points):
|
||||||
assert(len(points) % 4 == 0)
|
assert(len(points) % 4 == 0)
|
||||||
|
Reference in New Issue
Block a user