SymAnimate Class Documentation
-
class SymAnimate : public emp::web::Animate
Public Functions
-
inline SymAnimate()
The contructor for SymAnimate
-
inline void initializeWorld()
Input: None
Output: None
Purpose: To initialize the world based upon the config setting given
-
inline void setButtonStyle(std::string but_id)
Input: The string representing the button identification.
Output: None
Purpose: To add style to the buttons displayed.
-
inline void drawPetriDish(UI::Canvas &can)
Input: The canvas being used.
Output: None
Purpose: To draw the petri dish of basteria and phage.
-
inline std::string matchColor(double intVal)
Input: The double representing symbiont or host’s interaction value
Output: The string representing the hex value for the color of the organism.
Purpose: To determine the color that an organism should be, given its interaction value.
-
inline void DoFrame()
Input: None
Output: None
Purpose: To update the frame displayed of the current world state.
-
inline SymAnimate()