{"id":24851913,"url":"https://github.com/sharpyr/palett","last_synced_at":"2026-02-08T23:01:33.357Z","repository":{"id":57134895,"uuid":"331283019","full_name":"sharpyr/Palett","owner":"sharpyr","description":"color toolset","archived":false,"fork":false,"pushed_at":"2024-11-29T23:24:29.000Z","size":583,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-12T12:13:56.755Z","etag":null,"topics":["ansi","ansi-escape-codes","c-sharp","cli","color","colorful","colorization","console","dye","hsl","palett","palette","rgb"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/sharpyr.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,"publiccode":null,"codemeta":null}},"created_at":"2021-01-20T11:16:48.000Z","updated_at":"2024-11-29T23:24:33.000Z","dependencies_parsed_at":"2025-01-24T12:34:05.420Z","dependency_job_id":"5c5bc5fd-9a94-48fd-9ede-78d6e9891097","html_url":"https://github.com/sharpyr/Palett","commit_stats":{"total_commits":138,"total_committers":1,"mean_commits":138.0,"dds":0.0,"last_synced_commit":"4093ae995b459e37098cadd9b0edfe5f16dff5ac"},"previous_names":["hoyeungw/palett"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sharpyr/Palett","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharpyr%2FPalett","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharpyr%2FPalett/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharpyr%2FPalett/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharpyr%2FPalett/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sharpyr","download_url":"https://codeload.github.com/sharpyr/Palett/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharpyr%2FPalett/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29248487,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T22:49:53.206Z","status":"ssl_error","status_checked_at":"2026-02-08T22:49:51.384Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["ansi","ansi-escape-codes","c-sharp","cli","color","colorful","colorization","console","dye","hsl","palett","palette","rgb"],"created_at":"2025-01-31T14:27:27.016Z","updated_at":"2026-02-08T23:01:33.326Z","avatar_url":"https://github.com/sharpyr.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n![Banner](https://raw.githubusercontent.com/sharpyr/Palett/refs/heads/master/media/palett-banner.svg)\n\nColor space tools\n\n[![Version](https://img.shields.io/nuget/vpre/Palett.svg)](https://www.nuget.org/packages/Palett)\n[![Downloads](https://img.shields.io/nuget/dt/Palett.svg)](https://www.nuget.org/packages/Palett)\n[![Dependent Libraries](https://img.shields.io/librariesio/dependents/nuget/Palett.svg?label=dependent%20libraries)](https://libraries.io/nuget/Palett)\n[![Language](https://img.shields.io/badge/language-C%23-blueviolet.svg)](https://dotnet.microsoft.com/learn/csharp)\n[![Compatibility](https://img.shields.io/badge/compatibility-.NET%20Standard%202.0-blue.svg)]()\n[![License](https://img.shields.io/github/license/sharpyr/Palett.svg)](https://github.com/sharpyr/Palett/LICENSE)\n\n## Features\n\n- Transform between RGB and HSL color spaces.\n- Convert among hex, int, (byte r, byte g, byte b), (float h, float s, float l) and System.Drawing.Color.\n- Applicable to styles: Bold, Italic, Underline, and Inverse.\n- Render an array or 2d-array of number into colored based on the relative value of each number.\n\n## Content\n\n| Package            | Content                                               |\n|--------------------|-------------------------------------------------------|\n| `Palett`           | The core library, including all Palett sub projects   |\n| `Palett.Cards`     | Preset color cards with 14 degrees of color gradients |\n| `Palett.Convert`   | Convert colors among hex / int / rgb / hsl / Color    |\n| `Palett.Deco`      | Render terminal string color                          |\n| `Palett.Dye`       | Colorant (factory) for terminal string                |\n| `Palett.Fluos`     | Colorize array and 2d-array in terminal               |\n| `Palett.Presets`   | Preset color range                                    |\n| `Palett.Projector` | Project a number to colored based on a range          |\n| `Palett.Types`     | Base types in Palett series                           |\n| `Palett.Utils`     | Base static params of ANSI values                     |\n\n## Install\n\nPalett targets .NET Standard 2.0, suitable for .NET and .NET Framework.\n\nInstall [Palett package](https://www.nuget.org/packages/Palett) and its dependencies.\n\nNuGet Package Manager:\n\n```powershell\nInstall-Package Palett\n```\n\n.NET CLI:\n\n```shell\ndotnet add package Palett\n```\n\nAll versions can be found [on nuget](https://www.nuget.org/packages/Palett#versions-body-tab).\n\n## Usage\n\n### Convert color\n\n```csharp\nusing Palett.Convert;\n// using RGB = System.ValueTuple\u003cbyte, byte, byte\u003e;\n// using HSL = System.ValueTuple\u003cfloat, float, float\u003e;\n\n(byte, byte, byte) rgb = (242, 114, 69);\nvar hsl = rgb.RgbToHsl();\nvar hex = hsl.HslToHex();\nvar rgb2 = Conv.HexToRgb(hex);\nvar int = rgb2.RgbToInt();\n```\n\n### Colorize vector\n\n```csharp\nusing Palett;\nusing Palett.Fluos;\n\nvar samples = new[] { \"foo\", \"bar\", \"zen\", \"16\", \"24\", \"32\", \"64\" };\nvar colored = samples.Fluo(Presets.Planet);\n```\n\n# Examples\n---------------------\nPalett has a test suite in the [test project](https://github.com/sharpyr/Palett/tree/master/Palett.Test/Src).\n\n## Feedback\n\nPalett is licensed under the [MIT](https://github.com/sharpyr/Palett/LICENSE) license. \n\nBug report and contribution are welcome at [the GitHub repository](https://github.com/sharpyr/Palett).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharpyr%2Fpalett","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsharpyr%2Fpalett","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharpyr%2Fpalett/lists"}