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

Method __init__

scenario_runner/no_rendering_mode.py:227–232  ·  view source on GitHub ↗
(self, font, dim, pos)

Source from the content-addressed store, hash-verified

225
226class FadingText(object):
227 def __init__(self, font, dim, pos):
228 self.font = font
229 self.dim = dim
230 self.pos = pos
231 self.seconds_left = 0
232 self.surface = pygame.Surface(self.dim)
233
234 def set_text(self, text, color=COLOR_WHITE, seconds=2.0):
235 text_texture = self.font.render(text, True, color)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected