{"id":19704268,"url":"https://github.com/rimurudev/unity-colorutility","last_synced_at":"2026-02-12T23:03:27.134Z","repository":{"id":206697192,"uuid":"717500438","full_name":"RimuruDev/Unity-ColorUtility","owner":"RimuruDev","description":"ColorUtility is a compact and efficient class designed for working with colors in Unity. It facilitates easy conversion of hexadecimal color codes (in RRGGBB format) to Unity Color objects. This tool is particularly useful when working with color values obtained from external sources, such as web APIs, user interfaces, or text files.","archived":false,"fork":false,"pushed_at":"2024-11-21T13:34:41.000Z","size":15,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-07T12:12:46.525Z","etag":null,"topics":["rimuru-dev","rimurudev","unity","unity-utilities","utilities","utility","utils"],"latest_commit_sha":null,"homepage":"https://t.me/DevLogUnity","language":"C#","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/RimuruDev.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":"2023-11-11T16:47:47.000Z","updated_at":"2024-11-22T17:23:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"62a96401-963f-4ccb-8635-36c8b9402ebf","html_url":"https://github.com/RimuruDev/Unity-ColorUtility","commit_stats":null,"previous_names":["rimurudev/unity-colorutility"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RimuruDev%2FUnity-ColorUtility","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RimuruDev%2FUnity-ColorUtility/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RimuruDev%2FUnity-ColorUtility/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RimuruDev%2FUnity-ColorUtility/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RimuruDev","download_url":"https://codeload.github.com/RimuruDev/Unity-ColorUtility/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252873891,"owners_count":21817715,"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":["rimuru-dev","rimurudev","unity","unity-utilities","utilities","utility","utils"],"created_at":"2024-11-11T21:21:36.631Z","updated_at":"2026-02-12T23:03:27.093Z","avatar_url":"https://github.com/RimuruDev.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿[English](README.md) | [Русский](README_RU.md)\n\n\u003cp align=\"center\"\u003e\u003ch1\u003e⭐ColorUtility for Unity⭐\u003c/h1\u003e\u003c/p\u003e\n \u003cp align=\"center\"\u003e\n  \u003ca\u003e\n    \u003cimg alt=\"Made With Unity\" src=\"https://img.shields.io/badge/made%20with-Unity-57b9d3.svg?logo=Unity\"\u003e\n  \u003c/a\u003e\n  \u003ca\u003e\n  \u003cimg alt=\"License\" src=\"https://img.shields.io/github/license/RimuruDev/Unity-ColorUtility?logo=github\"\u003e\n  \u003c/a\u003e\n  \u003ca\u003e\n    \u003cimg alt=\"Last Commit\" src=\"https://img.shields.io/github/last-commit/RimuruDev/Unity-ColorUtility?logo=Mapbox\u0026color=orange\"\u003e\n  \u003c/a\u003e\n  \u003ca\u003e\n    \u003cimg alt=\"Repo Size\" src=\"https://img.shields.io/github/repo-size/RimuruDev/Unity-ColorUtility?logo=VirtualBox\"\u003e\n  \u003c/a\u003e\n  \u003ca\u003e\n    \u003cimg alt=\"Downloads\" src=\"https://img.shields.io/github/downloads/RimuruDev/Unity-ColorUtility/total?color=brightgreen\"\u003e\n  \u003c/a\u003e\n  \u003ca\u003e\n    \u003cimg alt=\"Last Release\" src=\"https://img.shields.io/github/v/release/RimuruDev/Unity-ColorUtility?include_prereleases\u0026logo=Dropbox\u0026color=yellow\"\u003e\n  \u003c/a\u003e\n  \u003ca\u003e\n    \u003cimg alt=\"GitHub stars\" src=\"https://img.shields.io/github/stars/RimuruDev/Unity-ColorUtility?branch=main\u0026label=Stars\u0026logo=GitHub\u0026logoColor=ffffff\u0026labelColor=282828\u0026color=informational\u0026style=flat\"\u003e\n  \u003c/a\u003e\n  \u003ca\u003e\n    \u003cimg alt=\"GitHub user stars\" src=\"https://img.shields.io/github/stars/RimuruDev?affiliations=OWNER\u0026branch=main\u0026label=User%20Stars\u0026logo=GitHub\u0026logoColor=ffffff\u0026labelColor=282828\u0026color=informational\u0026style=flat\"\u003e\n  \u003c/a\u003e\n  \u003ca\u003e\n    \u003cimg alt=\"\" src=\"https://img.shields.io/github/watchers/RimuruDev/Unity-ColorUtility?style=flat\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\n## Description\nColorUtility is a compact and efficient class designed for working with colors in Unity. It facilitates easy conversion of hexadecimal color codes (in RRGGBB format) to Unity `Color` objects. This tool is particularly useful when working with color values obtained from external sources, such as web APIs, user interfaces, or text files.\n\n## Features\n- Simple conversion of hexadecimal color codes to Unity `Color` objects.\n- Verification of input format correctness to enhance error resilience.\n- Easily integrates into any Unity project.\n\n## Installation\nTo use `ColorUtility`, copy the `ColorUtility.cs` file into the `Scripts` or `Codebase` folder of your Unity project. Alternatively, you can download the ready-made `.package` in the Releases section.\n\n## Usage Examples\n\n### Converting a Hexadecimal String to a Color\n```csharp\nColor color = ColorUtility.HexToColor(\"FF5733\");\n```\n\nThis code converts the string \"FF5733\" into a Unity Color object, which can now be used for setting colors in your game or application.\n\n## Handling Incorrect Input Data\nIf the passed string is incorrectly formatted, ColorUtility will return a white color and issue a warning in the Unity console.\n```csharp\nColor color = ColorUtility.HexToColor(\"IncorrectFormat\"); // Returns Color.white\n```\n## Contributing to the Project\nSuggestions for improvement or feedback are welcome! If you have ideas to enhance ColorUtility, feel free to create a pull request or issue in the GitHub repository.\n\n- Telegram channel - https://t.me/DevLogUnity\n- Chat in Telegram - https://t.me/DevLogUnity3d\n\nLicense This project is distributed under the MIT License. See the LICENSE file for more details.\n\nAuthor: RimuruDev\n\n\n### TODO:\n- Added package\n- Fixed docs/readme\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frimurudev%2Funity-colorutility","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frimurudev%2Funity-colorutility","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frimurudev%2Funity-colorutility/lists"}