def add_text(self, text, color):
        """ Internal method to add a new text to the output """
        Text(
            x=Globals.native_resolution.x - 30,
            y=self._num_errors * 23,
            align="right",
            text=text,
            size=12,
            parent=self._error_node,
            color=color
        )

        self._num_errors += 1

        if self._num_errors > 30:
            self.clear_messages()
            self.add_error("Error count exceeded. Cleared errors ..")
 Internal method to add a new text to the output 
metadrive/render_pipeline/rpcore/gui/error_message_display.py