{"id":15722627,"url":"https://github.com/andrewyavors/lua-color-converter","last_synced_at":"2025-10-16T11:54:48.733Z","repository":{"id":227310392,"uuid":"49749806","full_name":"andrewyavors/Lua-Color-Converter","owner":"andrewyavors","description":"Converts your hex or RGB values into Corona/Defold-compatible format","archived":false,"fork":false,"pushed_at":"2024-03-12T16:17:39.000Z","size":8,"stargazers_count":28,"open_issues_count":0,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-07T22:45:17.949Z","etag":null,"topics":["colors","corona","corona-sdk","defold","hex","lua-color-converter","rgb-values"],"latest_commit_sha":null,"homepage":"","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/andrewyavors.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-01-15T23:04:01.000Z","updated_at":"2025-04-20T06:08:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"68858fa4-d0ce-4540-9523-93f2db8ac9e9","html_url":"https://github.com/andrewyavors/Lua-Color-Converter","commit_stats":null,"previous_names":["andrewyavors/lua-color-converter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andrewyavors/Lua-Color-Converter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewyavors%2FLua-Color-Converter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewyavors%2FLua-Color-Converter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewyavors%2FLua-Color-Converter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewyavors%2FLua-Color-Converter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrewyavors","download_url":"https://codeload.github.com/andrewyavors/Lua-Color-Converter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewyavors%2FLua-Color-Converter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279186971,"owners_count":26122174,"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","status":"online","status_checked_at":"2025-10-16T02:00:06.019Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["colors","corona","corona-sdk","defold","hex","lua-color-converter","rgb-values"],"created_at":"2024-10-03T22:08:41.148Z","updated_at":"2025-10-16T11:54:48.714Z","avatar_url":"https://github.com/andrewyavors.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lua Color Converter\nConverts your hex or RGB values into Corona/Defold-compatible format (numbers from 0 to 1)\n\n\n\n### HowTo:\n1. Put **convertcolor.lua** into your project directory\n\n2. Load it from your files (where it's necessary)\n```lua\nlocal color = require(\"convertcolor\")\n```\n\n3. Use it to convert from hex:\n```lua\ncolor.hex(\"#ff00ff\")\ncolor.hex(\"#ff00ff\", 0.5) --alpha set to 50%\n```\n.. and to convert from regular rgb:\n```lua\ncolor.rgb(255, 0, 255)\ncolor.rgba(255, 0, 255, 0.1) --alpha set to 10%\n```\n\n### Examples:\n```lua\nlocal myText = display.newText( \"example from Corona Docs\", 0, 0, native.systemFontBold, 12 )\nmyText:setFillColor( color.hex(\"#ff10ae\") )\n```\n\n```lua\ngo.set(\"#label\", \"color\", vmath.vector4(color.rgb(255, 16, 174, 1))\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewyavors%2Flua-color-converter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewyavors%2Flua-color-converter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewyavors%2Flua-color-converter/lists"}