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

cubic bezier animation for workflow #92

Open
roodkcab opened this issue Jan 17, 2023 · 0 comments
Open

cubic bezier animation for workflow #92

roodkcab opened this issue Jan 17, 2023 · 0 comments

Comments

@roodkcab
Copy link
Member

roodkcab commented Jan 17, 2023

use cubic bezier in workflow to calculate deltaX for animation like css

var bezier1 = self.CubicBezier(0, 0, 1, 1);
var bezier2 = self.CubicBezier(0.25, 0, 0.25, 1);
self.AddAnimation(IGuiAnimation::CreateAnimation(func (time: UInt64): void {
    var changeTime = (cast double (time % (cast UInt64 2000))) / 2000;
    var b1 = bezier1(changeTime);
    var b2 = bezier2(changeTime);

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

1 participant