Make stroke width array a float

This commit is contained in:
Grant Sanderson 2020-06-28 10:04:40 -07:00
parent 6a735e49b8
commit 14cac5ce71

View file

@ -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