{"id":13458425,"url":"https://github.com/andrewyavors/Lua-Color-Converter","last_synced_at":"2025-03-24T15:31:16.361Z","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-03-14T23:21:51.731Z","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-01-30T11:06:44.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,"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","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245298000,"owners_count":20592514,"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":["colors","corona","corona-sdk","defold","hex","lua-color-converter","rgb-values"],"created_at":"2024-07-31T09:00:52.439Z","updated_at":"2025-03-24T15:31:12.340Z","avatar_url":"https://github.com/andrewyavors.png","language":"Lua","funding_links":[],"categories":["Graphics"],"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"}