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

Method draw_solid_line

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

Source from the content-addressed store, hash-verified

480 return tango_color
481
482 def draw_solid_line(surface, color, closed, points, width):
483 if len(points) >= 2:
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]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected