{"id":18839723,"url":"https://github.com/maximbilan/sktexturegradient","last_synced_at":"2025-04-14T06:55:12.961Z","repository":{"id":62454020,"uuid":"48881585","full_name":"maximbilan/SKTextureGradient","owner":"maximbilan","description":"A SpriteKit SKTexture Gradient","archived":false,"fork":false,"pushed_at":"2018-09-21T14:08:24.000Z","size":17,"stargazers_count":30,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T06:55:08.603Z","etag":null,"topics":["gradient","ios","spritekit","swift","texture"],"latest_commit_sha":null,"homepage":"","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/maximbilan.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":"2016-01-01T15:30:02.000Z","updated_at":"2025-02-07T03:53:18.000Z","dependencies_parsed_at":"2022-11-01T23:33:42.025Z","dependency_job_id":null,"html_url":"https://github.com/maximbilan/SKTextureGradient","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximbilan%2FSKTextureGradient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximbilan%2FSKTextureGradient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximbilan%2FSKTextureGradient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximbilan%2FSKTextureGradient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maximbilan","download_url":"https://codeload.github.com/maximbilan/SKTextureGradient/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248837281,"owners_count":21169374,"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":["gradient","ios","spritekit","swift","texture"],"created_at":"2024-11-08T02:43:53.465Z","updated_at":"2025-04-14T06:55:12.936Z","avatar_url":"https://github.com/maximbilan.png","language":"Swift","readme":"# SKTextureGradient\n\n[![Version](https://img.shields.io/cocoapods/v/SKTextureGradient.svg?style=flat)](http://cocoadocs.org/docsets/SKTextureGradient)\n[![License](https://img.shields.io/cocoapods/l/SKTextureGradient.svg?style=flat)](http://cocoadocs.org/docsets/SKTextureGradient)\n[![Platform](https://img.shields.io/cocoapods/p/SKTextureGradient.svg?style=flat)](http://cocoadocs.org/docsets/SKTextureGradient)\n[![CocoaPods](https://img.shields.io/cocoapods/dt/SKTextureGradient.svg)](https://cocoapods.org/pods/SKTextureGradient)\n[![CocoaPods](https://img.shields.io/cocoapods/dm/SKTextureGradient.svg)](https://cocoapods.org/pods/SKTextureGradient)\n\nA simple \u003ci\u003e\u003ca href=\"https://developer.apple.com/library/prerelease/ios/documentation/SpriteKit/Reference/SKTexture_Ref/index.html\"\u003eSKTexture\u003c/a\u003e\u003c/i\u003e extension for creating a gradient effect in \u003ci\u003e\u003ca href=\"https://developer.apple.com/spritekit/\"\u003eSpriteKit\u003c/a\u003e\u003c/i\u003e.\n\n# Installation\n\n\u003cb\u003eCocoaPods:\u003c/b\u003e\n\u003cpre\u003e\npod 'SKTextureGradient'\n\u003c/pre\u003e\n\n\u003cb\u003eManual:\u003c/b\u003e\n\u003cpre\u003e\nCopy \u003ci\u003eSKTextureGradient.swift\u003c/i\u003e to your project.\n\u003c/pre\u003e\n\n# Using\n\u003cpre\u003e\nlet topColor = CIColor(rgba: \"#71B280\")\nlet bottomColor = CIColor(rgba: \"#134E5E\")\n\nlet texture = SKTexture(size: CGSizeMake(200, 200), color1: topColor, color2: bottomColor, direction: GradientDirection.up)\ntexture.filteringMode = .Nearest\n\nlet sprite = SKSpriteNode(texture: texture)\nsprite.position = CGPointMake(CGRectGetMidX(frame), CGRectGetMidY(frame))\nsprite.size = self.frame.size\naddChild(sprite)\n\u003c/pre\u003e\n\n# Example\n\n![alt tag](https://raw.github.com/maximbilan/SKTextureGradient/master/example.png)\n\n## License\n\nSKTextureGradient is available under the MIT license. See the LICENSE file for more info.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaximbilan%2Fsktexturegradient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaximbilan%2Fsktexturegradient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaximbilan%2Fsktexturegradient/lists"}