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

feat(core): improve loop function #952

Merged
merged 1 commit into from
Feb 10, 2024

Conversation

aarthificial
Copy link
Contributor

The first argument can be skipped to run the loop forever.
These two statements are now equivalent:

yield loop(Infinity, () => /* animation */);
yield loop(() => /* animation */);

@aarthificial aarthificial merged commit 66c18bb into motion-canvas:main Feb 10, 2024
9 checks passed
@aarthificial aarthificial deleted the loop branch February 10, 2024 17:53
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

Successfully merging this pull request may close these issues.

None yet

1 participant