mirror of
https://github.com/3b1b/manim.git
synced 2025-08-21 05:44:04 +00:00
Make stroke width array a float
This commit is contained in:
parent
6a735e49b8
commit
14cac5ce71
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ class VMobject(Mobject):
|
||||||
sm.set_stroke(color, width, opacity, background, family)
|
sm.set_stroke(color, width, opacity, background, family)
|
||||||
self.update_rgbas_array("stroke_rgbas", color, opacity)
|
self.update_rgbas_array("stroke_rgbas", color, opacity)
|
||||||
if width is not None:
|
if width is not None:
|
||||||
self.stroke_width = np.array(listify(width))
|
self.stroke_width = np.array(listify(width), dtype=float)
|
||||||
if background is not None:
|
if background is not None:
|
||||||
self.draw_stroke_behind_fill = background
|
self.draw_stroke_behind_fill = background
|
||||||
return self
|
return self
|
||||||
|
|
Loading…
Add table
Reference in a new issue