Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set frame rate/ animation delay #29

Open
Kurren-N opened this issue Feb 1, 2016 · 2 comments
Open

Set frame rate/ animation delay #29

Kurren-N opened this issue Feb 1, 2016 · 2 comments

Comments

@Kurren-N
Copy link

Kurren-N commented Feb 1, 2016

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.

@rileyjshaw
Copy link
Owner

@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);

@bramvandijk88
Copy link

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..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants