We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
A couple things I want to implement/change in the Interpolator and unified Animator view of things:
Basic animation modes:
Basic animation parameters:
Group vs. Sequence
A better interpolatable protocol would just use [Double]:
[Double]
public protocol Interpolatable { init(with: [Double]) func components() -> [Double] }
protocol UINode protocol UIAction protocol UIAnimation: UIAction
SKAction
extension AnimationViewController { func animateNodes(_ nodes: [SKNode]) { for (index, node) in nodes.enumerated() { node.run(.sequence([ .wait(forDuration: TimeInterval(index) * 0.2), .repeatForever(.sequence([ // A group of actions get performed simultaneously .group([ .sequence([ .scale(to: 1.5, duration: 0.3), .scale(to: 1, duration: 0.3) ]), // Rotate by 360 degrees (pi * 2 in radians) .rotate(byAngle: .pi * 2, duration: 0.6) ]), .wait(forDuration: 2) ])) ])) } } }
The text was updated successfully, but these errors were encountered:
avaidyam
No branches or pull requests
A couple things I want to implement/change in the Interpolator and unified Animator view of things:
Basic animation modes:
Basic animation parameters:
Group vs. Sequence
A better interpolatable protocol would just use
[Double]
:SKAction
-centric example of what the API should do:The text was updated successfully, but these errors were encountered: