{"id":16938985,"url":"https://github.com/yageek/grade-swift","last_synced_at":"2025-03-21T05:44:45.479Z","repository":{"id":136753734,"uuid":"147353104","full_name":"yageek/grade-swift","owner":"yageek","description":" :fireworks: Generate gradient from the 2 main dominant colours in an image. Port of grade.js","archived":false,"fork":false,"pushed_at":"2018-11-08T08:20:41.000Z","size":925,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-26T02:45:12.997Z","etag":null,"topics":["coregraphics","gradient","ios"],"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/yageek.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-04T13:45:48.000Z","updated_at":"2022-08-08T13:45:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"5710b99a-72d6-4d91-87bb-315437511baf","html_url":"https://github.com/yageek/grade-swift","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"edee25522c93a792d70e98b14eeea353f66a067e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yageek%2Fgrade-swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yageek%2Fgrade-swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yageek%2Fgrade-swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yageek%2Fgrade-swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yageek","download_url":"https://codeload.github.com/yageek/grade-swift/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244745720,"owners_count":20503048,"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":["coregraphics","gradient","ios"],"created_at":"2024-10-13T21:03:14.291Z","updated_at":"2025-03-21T05:44:45.458Z","avatar_url":"https://github.com/yageek.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Grade Swift\n\nGenerate gradient from the 2 main dominant colours in an image. This a port of [grade](https://github.com/benhowdle89/grade) in Swift for iOS.\n\n![Screenshot](screenshot.png)\n\n## Setup\n\nAs cocoapods/carthage support is not available yet, simply include the `Source/Grade.swift` file in your project.\n\n## Usage\n\n```swift\n// iOS\nlet image = UIImage(named: \"myimage\")!\nlet (start, end) = GradeColors(forImage: image)\n```\n\nAn sample project is available inside the `Sample-iOS` directory.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyageek%2Fgrade-swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyageek%2Fgrade-swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyageek%2Fgrade-swift/lists"}