MCPcopy Create free account
hub / github.com/OpenDriveLab/DriveAdapter / draw_broken_line

Method draw_broken_line

scenario_runner/no_rendering_mode.py:486–489  ·  view source on GitHub ↗
(surface, color, closed, points, width)

Source from the content-addressed store, hash-verified

484 pygame.draw.lines(surface, color, closed, points, width)
485
486 def draw_broken_line(surface, color, closed, points, width):
487 broken_lines = [x for n, x in enumerate(zip(*(iter(points),) * 20)) if n % 3 == 0]
488 for line in broken_lines:
489 pygame.draw.lines(surface, color, closed, line, width)
490
491 def get_lane_markings(lane_marking_type, lane_marking_color, waypoints, sign):
492 margin = 0.20

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected