game.ui.stability_graph ======================= .. py:module:: game.ui.stability_graph Classes ------- .. autoapisummary:: game.ui.stability_graph.StabilityGraph Module Contents --------------- .. py:class:: StabilityGraph(width=200, height=100) A UI component to display ecosystem stability over time. .. py:attribute:: width :value: 200 .. py:attribute:: height :value: 100 .. py:attribute:: x :value: 690 .. py:attribute:: y :value: 10 .. py:attribute:: bg_color :value: (20, 20, 20, 180) .. py:attribute:: font .. py:attribute:: surface .. py:method:: render(screen, history) Render the stability graph onto the screen. :param screen: The main pygame screen surface. :param history: A list of recent degradation values (0.0 to 1.0). :type history: list