{"id":13465331,"url":"https://github.com/craiggrummitt/SpriteKitEasingSwift","last_synced_at":"2025-03-25T16:31:37.574Z","repository":{"id":19518630,"uuid":"22765664","full_name":"craiggrummitt/SpriteKitEasingSwift","owner":"craiggrummitt","description":"Better Easing for SpriteKit in Swift","archived":false,"fork":false,"pushed_at":"2021-06-10T16:05:49.000Z","size":2257,"stargazers_count":115,"open_issues_count":0,"forks_count":13,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-10-04T04:03:54.732Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://craiggrummitt.com/2014/08/08/easing-equations-in-swift/","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/craiggrummitt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-08T17:23:24.000Z","updated_at":"2024-03-17T03:44:26.000Z","dependencies_parsed_at":"2022-08-23T15:21:53.235Z","dependency_job_id":null,"html_url":"https://github.com/craiggrummitt/SpriteKitEasingSwift","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craiggrummitt%2FSpriteKitEasingSwift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craiggrummitt%2FSpriteKitEasingSwift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craiggrummitt%2FSpriteKitEasingSwift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craiggrummitt%2FSpriteKitEasingSwift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/craiggrummitt","download_url":"https://codeload.github.com/craiggrummitt/SpriteKitEasingSwift/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222088539,"owners_count":16928976,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T15:00:27.614Z","updated_at":"2024-10-29T17:30:45.715Z","avatar_url":"https://github.com/craiggrummitt.png","language":"Swift","funding_links":[],"categories":["Libs","Animation [🔝](#readme)"],"sub_categories":["Animation"],"readme":"![SpriteKitEasingSwift: Better Easing for SpriteKit in Swift. ](SpriteKitEasingSwift.png)\n\n[![CI Status](http://img.shields.io/travis/iosappdevelopmentwithswift@gmail.com/SpriteKitEasingSwift.svg?style=flat)](https://travis-ci.org/iosappdevelopmentwithswift@gmail.com/SpriteKitEasingSwift)\n[![Version](https://img.shields.io/cocoapods/v/SpriteKitEasingSwift.svg?style=flat)](http://cocoapods.org/pods/SpriteKitEasingSwift)\n[![License](https://img.shields.io/cocoapods/l/SpriteKitEasingSwift.svg?style=flat)](http://cocoapods.org/pods/SpriteKitEasingSwift)\n[![Platform](https://img.shields.io/cocoapods/p/SpriteKitEasingSwift.svg?style=flat)](http://cocoapods.org/pods/SpriteKitEasingSwift)\n\nThis easing library began life as a port of \u003ca href=\"https://github.com/buddingmonkey\"\u003ebuddingmonkey\u003c/a\u003e's Objective C \u003ca href=\"https://github.com/buddingmonkey/SpriteKit-Easing\"\u003eSpriteKit Easing library\u003c/a\u003e to Swift.\n\nThis library extends upon the basic easing equations available in the SpriteKit framework by Apple.\n\nSprite Kit Easing makes available the following standard easing equations as SKActions.\n\n![easing.gif](easing.gif)\n\nUse SKEase methods to tween properties of an SKNode, such as:\n* move\n* scale\n* scaleX\n* scaleY\n* rotate\n* fade\n* tweenLabelColor\n* tweenShapeFillColor\n\nIf you want to tween a variable, use:\n* createPointTween\n* createFloatTween\n* createColorTween\n\nThe SKEase functions return an SKAction that performs the ease. You can then run the SKAction in the same manner you would any other SKAction in SpriteKit.\n\n```Swift\n//eg an SKLabelNode(which extends SKNode) flies in from the right with an elastic tween:\n//first create an SKNode, let's create a label node\nlet titleLabel = SKLabelNode(fontNamed:\"Avenir-Light\")\ntitleLabel.text = \"Hello world\"\ntitleLabel.fontSize = 65\ntitleLabel.fontColor = UIColor.white\ntitleLabel.position = CGPoint(x:self.frame.midX, y:self.frame.midY)\nself.addChild(titleLabel)\n//perform elastic ease\ntitleLabel.run(SKEase.move(easeFunction: .curveTypeElastic,\neaseType: .easeTypeOut,\ntime: 2,\nfrom: CGPoint(x: frame.width+titleLabel.frame.width/2, y: titleLabel.position.y),\nto:CGPoint(x: -titleLabel.frame.width/2, y: titleLabel.position.y)))\n```\n\n## Installation\n\n**via CocoaPods**\n\nSpriteKitEasingSwift is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'SpriteKitEasingSwift'\n```\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\nDon't forget to import the Pod where you would like to use it:\n\n```Swift\nimport SpriteKitEasingSwift\n```\n\n***via Github:***\n\nClone the project at Github ([https://github.com/craiggrummitt/SpriteKitEasingSwift](https://github.com/craiggrummitt/SpriteKitEasingSwift)). You will find an example project there as well. To use the framework drag the SpriteKitEasingSwift/Classes folder to your project.\n\n## Author\n\n\u003ca href=\"https://github.com/craiggrummitt\"\u003eCraig Grummitt\u003c/a\u003e\n\nAgain, credit and thanks go to \u003ca href=\"https://github.com/buddingmonkey/SpriteKit-Easing\"\u003eSpriteKitEasing\u003c/a\u003e and \u003ca href=\"https://github.com/warrenm/AHEasing\"\u003eAHEasing\u003c/a\u003e and the legend of easing, \u003ca href=\"http://robertpenner.com/easing/\"\u003eRobert Penner\u003c/a\u003e.\n\n\n## License\n\nSpriteKitEasingSwift is available under the MIT license. See the LICENSE file for more info.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcraiggrummitt%2FSpriteKitEasingSwift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcraiggrummitt%2FSpriteKitEasingSwift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcraiggrummitt%2FSpriteKitEasingSwift/lists"}