{"id":18705185,"url":"https://github.com/hsluv/hsluv-objc","last_synced_at":"2025-12-12T06:15:10.282Z","repository":{"id":33338663,"uuid":"36983463","full_name":"hsluv/hsluv-objc","owner":"hsluv","description":"Objective-C implementation of HSLuv (revision 4)","archived":false,"fork":false,"pushed_at":"2017-02-22T18:00:11.000Z","size":1562,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-12T10:04:57.516Z","etag":null,"topics":[],"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/hsluv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-06T14:44:55.000Z","updated_at":"2020-03-09T21:22:08.000Z","dependencies_parsed_at":"2022-08-21T05:50:34.686Z","dependency_job_id":null,"html_url":"https://github.com/hsluv/hsluv-objc","commit_stats":null,"previous_names":["husl-colors/husl-objc"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsluv%2Fhsluv-objc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsluv%2Fhsluv-objc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsluv%2Fhsluv-objc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsluv%2Fhsluv-objc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hsluv","download_url":"https://codeload.github.com/hsluv/hsluv-objc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248550634,"owners_count":21122933,"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-11-07T12:10:00.521Z","updated_at":"2025-12-12T06:15:10.227Z","avatar_url":"https://github.com/hsluv.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Cocoapod compatible](https://img.shields.io/cocoapods/v/hsluv-objc.svg)](https://cocoapods.org/pods/hsluv-objc)\n[![Build Status](https://travis-ci.org/hsluv/hsluv-objc.svg?branch=master)](https://travis-ci.org/hsluv/hsluv-objc)\n\n#hsluv-objc\n\nObjective-C port of [HSLuv](http://www.hsluv.org).\n\n##Which files are needed?\n\nIf you're using [CocoaPods](https://cocoapods.org) just add `pod 'hsluv-objc'` to your Podfile.\n\nOtherwise, include this files in your project:\n\n- hsluv-objc.h\n- hsluv-objc+Tests.h\n- hsluv-objc.c\n\n##How to use\n\nImport `hsluv-objc.h`, which defines the following functions:\n\n~~~objective-c\n// Accepts red, green and blue values between 0 and 1, returns the color in hex format, as in \"#012C4A\"\nNSString *rgbToHex(CGFloat red, CGFloat green, CGFloat blue);\n\n// Accepts an hex color, as in \"#012C4A\", and stores its red, green and blue components with values between 0 and 1.\nBOOL hexToRgb(NSString *hex, CGFloat *red, CGFloat *green, CGFloat *blue);\n\n// Hue is a value between 0 and 360, saturation and lightness between 0 and 100. Stores the RGB in values between 0 and 1.\nvoid hsluvToRgb(CGFloat hue, CGFloat saturation, CGFloat lightness, CGFloat *red, CGFloat *green, CGFloat *blue);\n\n// Red, green and blue values between 0 and 1, stores the hsluv components with hue between 0 and 360, saturation and lightness between 0 and 100.\nvoid rgbToHsluv(CGFloat red, CGFloat green, CGFloat blue, CGFloat *hue, CGFloat *saturation, CGFloat *lightness);\n\n// Hue is a value between 0 and 360, saturation and lightness between 0 and 100. Stores the RGB in values between 0 and 1.\nvoid hpluvToRgb(CGFloat hue, CGFloat saturation, CGFloat lightness, CGFloat *red, CGFloat *green, CGFloat *blue);\n\n// Red, green and blue values between 0 and 1, stores the hpluv components with hue between 0 and 360, saturation and lightness between 0 and 100.\nvoid rgbToHpluv(CGFloat red, CGFloat green, CGFloat blue, CGFloat *hue, CGFloat *saturation, CGFloat *lightness);\n~~~\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhsluv%2Fhsluv-objc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhsluv%2Fhsluv-objc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhsluv%2Fhsluv-objc/lists"}