{"id":21901851,"url":"https://github.com/somebadcode/go-colorx","last_synced_at":"2026-04-28T00:32:01.973Z","repository":{"id":45557101,"uuid":"354855958","full_name":"somebadcode/go-colorx","owner":"somebadcode","description":"Extra color models for Go","archived":false,"fork":false,"pushed_at":"2021-12-08T22:53:42.000Z","size":35,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-21T06:04:45.907Z","etag":null,"topics":["color","color-model","color-models","colors","colour","colour-spaces","css","css-color","css-colors","go","golang","hsl","hsla","hsv","hsv2rgb","hsva","rgb2hsv"],"latest_commit_sha":null,"homepage":"","language":"Go","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/somebadcode.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}},"created_at":"2021-04-05T14:08:26.000Z","updated_at":"2022-05-08T07:19:25.000Z","dependencies_parsed_at":"2022-09-19T20:14:16.814Z","dependency_job_id":null,"html_url":"https://github.com/somebadcode/go-colorx","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/somebadcode/go-colorx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/somebadcode%2Fgo-colorx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/somebadcode%2Fgo-colorx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/somebadcode%2Fgo-colorx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/somebadcode%2Fgo-colorx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/somebadcode","download_url":"https://codeload.github.com/somebadcode/go-colorx/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/somebadcode%2Fgo-colorx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32361477,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["color","color-model","color-models","colors","colour","colour-spaces","css","css-color","css-colors","go","golang","hsl","hsla","hsv","hsv2rgb","hsva","rgb2hsv"],"created_at":"2024-11-28T15:15:18.344Z","updated_at":"2026-04-28T00:32:01.958Z","avatar_url":"https://github.com/somebadcode.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# colorx - extra color models\n![Lint \u0026 Test](https://github.com/somebadcode/go-colorx/actions/workflows/main.yml/badge.svg)\n\nThis package contains extra color models to complement the models in `image/color`. By using a different color model\nthan the default `color.RGBA` model, you can specify or modify the color in a different way.\n\n**Import:** `github.com/somebadcode/go-colorx/v2`\n\n### HSV/HSB - Hue, Saturation, Value/Brightness\nHSV is implemented through the concrete type `HSVA`. The HSV color model was designed to more closely reflect how\nhumans perceive colors. You can use HSV to generate gradients or a color palette for graphs that are easier to perceive\nfor colorblind users. You can also use this color model to make images monochrome or have more saturated colors.\n\n### HSL - Hue, Saturation, Lightness\nHSL is similar to HSV and can be more useful in some use cases.\n\n### CSS - Cascading Style Sheets\nA variation of the RGBA color model where the alpha/opacity is stored as a floating point number between 0.0 and 1.0.\nThis allows you to work with the colors using the `image/colors` package and convert it to this special color model that\ncan give you strings that specify the color according to CSS specifications. The `CSS` color model implements the\nstringer interface.\n\nExamples:\n- `rgb(255,191,128)`\n- `rgba(255,191,128,0.75)`\n- `#FFBF80`\n- `#FFBF80BF`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsomebadcode%2Fgo-colorx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsomebadcode%2Fgo-colorx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsomebadcode%2Fgo-colorx/lists"}