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

Avoid stroke around shape during morphing animation #120

Closed
zapletnev opened this issue Apr 17, 2017 · 0 comments
Closed

Avoid stroke around shape during morphing animation #120

zapletnev opened this issue Apr 17, 2017 · 0 comments
Assignees
Milestone

Comments

@zapletnev
Copy link
Contributor

import Foundation
import Macaw

class MorhView: MacawView {
    required convenience init?(coder aDecoder: NSCoder) {
        let circle = Shape(
            form: Circle(r: 15.0),
            fill: Color.silver
        )
        
        let node = Group(contents: [circle])
        node.place = node.place.move(dx: 200, dy: 200)
        
        node.onTouchPressed { f in
            circle.fillVar.animate(to: Color.white, during: 2.0)
        }
        self.init(node: node, coder: aDecoder)
    }
}
@ystrot ystrot added this to the 0.8.2 milestone May 10, 2017
@ystrot ystrot changed the title Stroke around shape during morphing animation Avoid stroke around shape during morphing animation May 10, 2017
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