larvaworld.lib.screen.side_panel ================================ .. py:module:: larvaworld.lib.screen.side_panel .. autoapi-nested-parse:: Screen side-panel for pygame-based simulation visualization Classes ------- .. autoapisummary:: larvaworld.lib.screen.side_panel.SidePanel Module Contents --------------- .. py:class:: SidePanel(viewer) A class representing a side panel for displaying information in a Pygame viewer. .. py:attribute:: FONT_SIZE :value: 30 .. py:attribute:: LINE_SPACING_MIN :value: 25 .. py:attribute:: LINE_SPACING_MAX :value: 35 .. py:attribute:: SCENE_HEIGHT_THRESHOLD :value: 700 .. py:attribute:: DEFAULT_MARGIN :value: 35 .. py:attribute:: LEFT_MARGIN :value: 30 .. py:attribute:: viewer .. py:attribute:: line_num :value: None .. py:attribute:: line_spacing :value: 35 .. py:method:: display_ga_info() Displays information about the Genetic Algorithm (GA) on the side panel. .. py:method:: render_line(text, extra_margin=0) Renders a text line on the side panel. :param text: The text to render. :param extra_margin: Additional margin for the text. .. py:method:: draw(v, **kwargs) Draws the side panel on the Pygame viewer. :param v: The Pygame viewer. :param kwargs: Additional drawing arguments.