element['stroke'] = stroke_color
element['stroke-opacity'] = a
element['stroke-linejoin'] = 'round'
+ element['stroke-width'] = self.stroke_width
else:
element['stroke'] = 'none'
def draw_polygon_by_verts(self, verts,
stroke_color=(0, 0, 0),
fill_color=None):
- polygon = self.svg.polygon(verts, stroke_width=self.stroke_width)
+ polygon = self.svg.polygon(verts)
self._fill(polygon, fill_color)
self._stroke(polygon, stroke_color)
def draw_star_by_verts(self, cx, cy, verts, stroke_color=(0, 0, 0)):
for v in verts:
- line = self.svg.line((cx, cy), v, stroke_width=self.stroke_width)
+ line = self.svg.line((cx, cy), v)
self._stroke(line, stroke_color)
self.add(line)