This function generates the visual representation of the simulation. It takes the current state of the simulation and produces an image or a series of images representing that state. - Input: Current state of the simulation. - Output: Visual representation of the simulation.<br/>