game.ui.stability_graph

Classes

StabilityGraph

A UI component to display ecosystem stability over time.

Module Contents

class game.ui.stability_graph.StabilityGraph(width=200, height=100)[source]

A UI component to display ecosystem stability over time.

width = 200[source]
height = 100[source]
x = 690[source]
y = 10[source]
bg_color = (20, 20, 20, 180)[source]
font[source]
surface[source]
render(screen, history)[source]

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