- def draw_dot(self, cx, cy, size=10.0, fill_color=[0, 0, 0, 0.5]):
+ def draw_star(self, cx, cy, sides, r, theta=0.0, stroke_color=[0, 0, 0]):
+ apothem = r * cos(pi / sides)
+ apothem_angle = theta + pi / sides
+
+ verts = self.get_regular_polygon(cx, cy, sides, apothem, apothem_angle)
+ self.draw_star_by_verts(cx, cy, verts, stroke_color)
+ return verts
+
+ def draw_circle(self, cx, cy, size=10.0, fill_color=[0, 0, 0, 0.5],
+ stroke_color=None):