def fastforward_simulation(self): """ Plays the simulation at 2, 4 or 8× """ sim_speed = lib.get_speed() if sim_speed == 2: lib.set_speed(4) elif sim_speed == 4: lib.set_speed(8) elif sim_speed == 8: lib.set_speed(1) else: lib.set_speed(2)
def pause_simulation(self): """ """ lib.set_speed(0.0)
def play_simulation(self): """ """ lib.set_speed(1.0)
def play_simulation(self): """ """ lib.set_speed (1.0)