{"id":13524754,"url":"https://github.com/hsluv/hsluv-lua","last_synced_at":"2025-04-12T10:07:06.612Z","repository":{"id":20452436,"uuid":"23729551","full_name":"hsluv/hsluv-lua","owner":"hsluv","description":"Lua implementation of HSLuv (revision 4)","archived":false,"fork":false,"pushed_at":"2023-05-03T02:08:24.000Z","size":1039,"stargazers_count":46,"open_issues_count":1,"forks_count":1,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-12T10:05:02.769Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.hsluv.org","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"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":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2014-09-06T07:34:37.000Z","updated_at":"2025-02-14T23:30:29.000Z","dependencies_parsed_at":"2024-01-03T04:02:36.709Z","dependency_job_id":null,"html_url":"https://github.com/hsluv/hsluv-lua","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsluv%2Fhsluv-lua","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsluv%2Fhsluv-lua/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsluv%2Fhsluv-lua/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsluv%2Fhsluv-lua/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hsluv","download_url":"https://codeload.github.com/hsluv/hsluv-lua/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-08-01T06:01:13.159Z","updated_at":"2025-04-12T10:07:06.585Z","avatar_url":"https://github.com/hsluv.png","language":"Lua","readme":"[![Build Status](https://github.com/hsluv/hsluv-lua/actions/workflows/test.yml/badge.svg)](https://github.com/hsluv/hsluv-lua/actions/workflows/test.yml)\n[![Package Version](https://img.shields.io/badge/luarocks-0.1--0-blue.svg)](https://luarocks.org/modules/hsluv/hsluv)\n\nLua implementation of [HSLuv](http://www.hsluv.org/) (revision 4), courtesy of [Mark Wonnacott](https://github.com/Ragzouken).\n\n# Installation\n\nCopy the hsluv.lua file directly into your project or install from luarocks:\n\n    luarocks install hsluv\n\n# Usage\n\n    \u003e hsluv = require 'hsluv'\n    \u003e = hsluv.hex_to_hsluv('#123456')\n    248.60320341681 85.43201417605  21.04172364179\n    \u003e = hsluv.husl_to_hex({248.60, 85.43, 21.04})\n    #123456\n    \u003e = hsluv.rgb_to_hsluv({0.07, 0.20, 0.33})\n    248.49244211716 85.009956491035 20.58410610897\n    \u003e = hsluv.hsluv_to_rgb({248.49, 85.00, 20.58})\n    0.070014042122372   0.19996570399156   0.32991848455264\n\nFor HPLuv, use `hex_to_hpluv`, `hpluv_to_hex`, `rgb_to_hpluv` and `hpluv_to_rgb`.\n\n# License\n\nCopyright (C) 2019 Alexei Boronine\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and\nassociated documentation files (the \"Software\"), to deal in the Software without restriction, including \nwithout limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell \ncopies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the \nfollowing conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial \nportions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT \nLIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN \nNO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, \nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE \nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","funding_links":[],"categories":["Lua","Scripting","Drawing"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhsluv%2Fhsluv-lua","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhsluv%2Fhsluv-lua","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhsluv%2Fhsluv-lua/lists"}