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

Problems with polygon animation #136

Closed
zapletnev opened this issue Jul 7, 2017 · 0 comments
Closed

Problems with polygon animation #136

zapletnev opened this issue Jul 7, 2017 · 0 comments
Assignees
Labels
Milestone

Comments

@zapletnev
Copy link
Contributor

        let polygon = Polygon(points: [50, 0, 100, 50, 50, 100, 0, 50])
        let polygonShape = Shape(form: polygon, fill: Color.red)
        let polygonGroup = [polygonShape].group()
        polygonGroup.onTap { _ in
            polygonGroup.placeVar.animation(to: polygonGroup.place.move(dx: 50.0, dy: 0.0)).play()
        }
        self.node = polygonGroup
@zapletnev zapletnev added the bug label Jul 7, 2017
@zapletnev zapletnev added this to the 0.8.3 milestone Jul 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants