mirror of
https://github.com/3b1b/manim.git
synced 2025-08-19 13:01:00 +00:00
Fixed make_jagged
This commit is contained in:
parent
e0ef531f49
commit
d943f10123
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue