parameters: (self, text, color=COLOR_WHITE, seconds=2.0)
docstring: Sets the text, color and seconds until fade out
docstring_summary: Sets the text, color and seconds until fade out
docstring_tokens: Sets the text color and seconds until fade out
function: def set_text(self, text, color=COLOR_WHITE, seconds=2.0):
          """Sets the text, color and seconds until fade out"""
          text_texture = self.font.render(text, True, color)
          self.surface = pygame.Surface(self.dim)
          self.seconds_left = seconds
          self.surface.fill(COLOR_BLACK)
          self.surface.blit(text_texture, (10, 11))
function_tokens: def set_text ( self , text , color = COLOR_WHITE , seconds = 2.0 ) : text_texture = self . font . render ( text , True , color ) self . surface = pygame . Surface ( self . dim ) self . seconds_left = seconds self . surface . fill ( COLOR_BLACK ) self . surface . blit ( text_texture , ( 10 , 11 ) )