{"id":16697422,"url":"https://github.com/thisandagain/color","last_synced_at":"2025-04-04T07:06:32.585Z","repository":{"id":4679127,"uuid":"5825654","full_name":"thisandagain/color","owner":"thisandagain","description":"A collection of categories and utilities that extend UIColor","archived":false,"fork":false,"pushed_at":"2020-09-09T05:35:40.000Z","size":144,"stargazers_count":537,"open_issues_count":14,"forks_count":49,"subscribers_count":28,"default_branch":"master","last_synced_at":"2024-10-13T17:47:39.758Z","etag":null,"topics":["color","objective-c","uicolor"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","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/thisandagain.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-09-16T01:18:33.000Z","updated_at":"2024-06-13T09:39:48.000Z","dependencies_parsed_at":"2022-08-06T17:30:15.664Z","dependency_job_id":null,"html_url":"https://github.com/thisandagain/color","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisandagain%2Fcolor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisandagain%2Fcolor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisandagain%2Fcolor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisandagain%2Fcolor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thisandagain","download_url":"https://codeload.github.com/thisandagain/color/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247135144,"owners_count":20889421,"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":["color","objective-c","uicolor"],"created_at":"2024-10-12T17:47:37.613Z","updated_at":"2025-04-04T07:06:32.557Z","avatar_url":"https://github.com/thisandagain.png","language":"Objective-C","readme":"## Color\n\n[![Build Status](http://img.shields.io/travis/thisandagain/color.svg?style=flat)](https://travis-ci.org/thisandagain/color)\n[![Version](http://img.shields.io/cocoapods/v/EDColor.svg?style=flat)](http://cocoadocs.org/docsets/EDColor)\n[![Platform](http://img.shields.io/badge/platform-iOS-blue.svg?style=flat)](http://cocoadocs.org/docsets/EDColor)\n\n\n### Getting Started\nThe quickest way to get started with `EDColor` is with [CocoaPods](http://cocoapods.org), but otherwise you can add the `EDColor` directory to your project and...\n```objective-c\n#import \"EDColor.h\"\n```\nThis will automatically bring in all of the various categories and classes that make up the library. Alternatively, if you only need the functionality from a single part of `EDColor`, you can just import that specific header as the library was designed to be completely modular and (thus) decoupled.\n\n### UIColor+Hex\n```objective-c\nUIColor *green   = [UIColor colorWithHex:0x00FF00];\nUIColor *blue    = [UIColor colorWithHex:0x0000FF andAlpha:0.5f];\nUIColor *gray    = [UIColor colorWithHexString:@\"#CCC\"];\n```\n\n![](https://raw.github.com/thisandagain/color/master/Demo/Images/example_rgb.png)\n\n### UIColor+HSB\n```objective-c\nUIColor *red     = [UIColor colorWithRed:1.0f green:0.0f blue:0.0f alpha:1.0f];\nUIColor *blue    = [red offsetWithHue:-0.56f saturation:0.0f brightness:0.0f alpha:0.0f];\n```\n\n![](https://raw.github.com/thisandagain/color/master/Demo/Images/example_hsb.png)\n\n### UIColor+HSL\n```objective-c\nUIColor *red     = [UIColor colorWithRed:1.0f green:0.0f blue:0.0f alpha:1.0f];\nUIColor *pink    = [red offsetWithHue:0.0f saturation:0.0f lightness:0.82f alpha:0.0f];\n```\n\n![](https://raw.github.com/thisandagain/color/master/Demo/Images/example_hsl.png)\n\n### UIColor+CIELAB\n\n```objective-c\nUIColor *red            = [UIColor colorWithRed:1.0f green:0.0f blue:0.0f alpha:1.0f];\nUIColor *brighterRed    = [red offsetWithLightness:15.0f a:0.0f b:0.0f alpha:0.0f];\n```\n\n![](https://raw.github.com/thisandagain/color/master/Demo/Images/example_cielab.png)\n\n\n### UIColor+Crayola\nBecause crayons are fun! Full list of colors: http://en.wikipedia.org/wiki/List_of_Crayola_crayon_colors\n```objective-c\nUIColor *mint    = [UIColor colorWithCrayola:@\"Magic Mint\"];\nUIColor *blue    = [UIColor colorWithCrayola:@\"Midnight Blue\"];\nUIColor *rorange = [UIColor colorWithCrayola:@\"Orange Red\"];\n```\n![](https://raw.github.com/thisandagain/color/master/Demo/Images/example_crayola.png)\n\n\n### UIColor+iOS7\nSome of the iOS7 colors from [ios7colors.com](http://ios7colors.com/).\n```objective-c\nUIColor *yellow    = [UIColor iOS7yellowColor];\n\nUIColor *greenGradientStart = [UIColor iOS7greenGradientStartColor];\nUIColor *greenGradientEnd = [UIColor iOS7greenGradientEndColor];\n```\n![](Demo/Images/example_ios7.png)\n\n\n---\n\n### Contributing\nInstall CocoaPods with `gem install cocoapods`. Run `pod install`. Open EDColor.xcworkspace.\n\n### Testing\nThe test suite for `EDColor` is built using OCUnit. To run the test suite, simply open the project in Xcode and choose \"test\" from the Product menu. Please run and augment the tests prior to submitting a pull request.\n\n### iOS Support\nEDColor is tested on iOS 5 and up. Older versions of iOS may work but are not currently supported.\n\n### ARC\nEDColor is built using ARC. If you are including EDColor in a project that **does not** use [Automatic Reference Counting (ARC)](http://developer.apple.com/library/ios/#releasenotes/ObjectiveC/RN-TransitioningToARC/Introduction/Introduction.html), you will need to set the `-fobjc-arc` compiler flag on all of the EDColor source files. To do this in Xcode, go to your active target and select the \"Build Phases\" tab. Now select all EDColor source files, press Enter, insert `-fobjc-arc` and then \"Done\" to enable ARC for EDColor.\n","funding_links":[],"categories":["uicolor"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisandagain%2Fcolor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthisandagain%2Fcolor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisandagain%2Fcolor/lists"}