mirror of
https://github.com/3b1b/manim.git
synced 2025-08-20 05:14:12 +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)
|
||||
self.update_rgbas_array("stroke_rgbas", color, opacity)
|
||||
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:
|
||||
self.draw_stroke_behind_fill = background
|
||||
return self
|
||||
|
|
Loading…
Add table
Reference in a new issue