def draw_group_center(self, group_center_x, group_center_y): group_center_x = constants.myround(group_center_x, 4) group_center_y = constants.myround(group_center_y, 4) (group_center_x, group_center_y) = self.screen_coords(group_center_x, group_center_y) pygame.draw.circle(self.screen, TRACKING_AREA_COLOUR, (group_center_x, group_center_y), self.screen_radius(0.2), 0)
def draw_pedestrian_outline(self, x, y, r, group_id): r = constants.myround(r) x = constants.myround(x, 4) y = constants.myround(y, 4) (x, y) = self.screen_coords(x, y) colour = COLOURS[int(round(group_id))] self._draw_circle(x, y, self.screen_radius(r), colour)