terra
terra copied to clipboard
Set frame rate/ animation delay
By default the animation is synced to the frame rate of the monitor. It would be nice if a custom frame rate or a delay (e.g. 1 second between frames) could be set before calling animate(). I'd be happy to look into doing this for you.
@Kurren-N cool idea! I'm not sure if we need to add this into the core library; would the following work for you?
window.setInterval(function() {
t.grid = t.step();
t.draw();
}, 1000);
I'm also trying to figure this one out. Is the default speed as fast as possible right now? I'm trying to make a bit more complex simulation, and I wish it were a bit quicker..