{"id":18877128,"url":"https://github.com/cyanvoxel/colorhex","last_synced_at":"2025-04-14T18:31:40.378Z","repository":{"id":219334390,"uuid":"207238619","full_name":"CyanVoxel/ColorHex","owner":"CyanVoxel","description":"A simple C# script that allows for creating UnityEngine Color32 variables via a hex code string","archived":false,"fork":false,"pushed_at":"2019-10-15T16:36:58.000Z","size":55,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T07:02:08.644Z","etag":null,"topics":["color","hex-codes","hex-color","unity","unity-scripts","unity3d"],"latest_commit_sha":null,"homepage":"","language":"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/CyanVoxel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2019-09-09T06:23:11.000Z","updated_at":"2025-02-16T02:18:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"9f568b12-8a9c-45f1-b72a-10208db6885f","html_url":"https://github.com/CyanVoxel/ColorHex","commit_stats":null,"previous_names":["cyanvoxel/colorhex"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyanVoxel%2FColorHex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyanVoxel%2FColorHex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyanVoxel%2FColorHex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyanVoxel%2FColorHex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CyanVoxel","download_url":"https://codeload.github.com/CyanVoxel/ColorHex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248936702,"owners_count":21186089,"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","hex-codes","hex-color","unity","unity-scripts","unity3d"],"created_at":"2024-11-08T06:17:03.288Z","updated_at":"2025-04-14T18:31:40.122Z","avatar_url":"https://github.com/CyanVoxel.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ColorHex\nA simple C# script that allows for creating UnityEngine Color32 variables via a hex code string\n\n## Getting Started\nGetting ColorHex into your Unity project is as simple as dropping the [ColorHex.cs](ColorHex.cs) file into your `Assets/Scripts` project folder.\n\n## Usage\nIn order to have access to ColorHex in your script, make sure to include `using ColorHexUtility;` at the top of any script that requires it.\n\nInstead of using Color32's constructor which requires you to pass byte values, you can now use the ColorHex constructor to pass in a hex code string. Since ColorHex is designed to be interoperable with Color32, an implementation can look like this:\n\n```cs\npublic Color32 tintRed500 = new ColorHex(\"#F14234\");\n```\n\n## Features\n- Reduces development time (and headaches) by letting you use a color code that can be copy-pasted straight from programs like Photoshop\n- Works with or without a preceding '#' character\n- Supports alpha values (ex. #FFFFFF00)\n- Allows some text editor/IDE plugins to preview your color (ex. [Color Info](https://github.com/mattbierner/vscode-color-info) for [Visual Studio Code](https://code.visualstudio.com/)\n\n\u003cimg src=\"example.png\" width=600px\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyanvoxel%2Fcolorhex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcyanvoxel%2Fcolorhex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyanvoxel%2Fcolorhex/lists"}