- def draw_star(self, cx, cy, verts, stroke_color=[0, 0, 0]):
+ def draw_polygon(self, cx, cy, sides, r, theta=0.0, fill_color=None, stroke_color=[0, 0, 0]):
+ verts = self.get_regular_polygon(cx, cy, sides, r, theta)
+ self.draw_polygon_by_verts(verts, fill_color, stroke_color)
+ return verts
+
+ def draw_star_by_verts(self, cx, cy, verts, stroke_color=[0, 0, 0]):