{"id":33938794,"url":"https://github.com/zhiburt/tiny-gradient","last_synced_at":"2026-04-02T18:45:47.929Z","repository":{"id":49444954,"uuid":"517672888","full_name":"zhiburt/tiny-gradient","owner":"zhiburt","description":"colorful gradients for your terminal.","archived":false,"fork":false,"pushed_at":"2022-07-25T13:40:12.000Z","size":10,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-21T17:41:30.445Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/zhiburt.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":"2022-07-25T13:18:19.000Z","updated_at":"2025-02-11T04:37:07.000Z","dependencies_parsed_at":"2022-08-30T21:21:18.332Z","dependency_job_id":null,"html_url":"https://github.com/zhiburt/tiny-gradient","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zhiburt/tiny-gradient","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhiburt%2Ftiny-gradient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhiburt%2Ftiny-gradient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhiburt%2Ftiny-gradient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhiburt%2Ftiny-gradient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhiburt","download_url":"https://codeload.github.com/zhiburt/tiny-gradient/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhiburt%2Ftiny-gradient/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31313309,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"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":[],"created_at":"2025-12-12T15:04:05.832Z","updated_at":"2026-04-02T18:45:47.924Z","avatar_url":"https://github.com/zhiburt.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"tiny-gradient\n=============\n\n[\u003cimg alt=\"github\" src=\"https://img.shields.io/badge/github-zhiburt/tiny--gradient-8da0cb?style=for-the-badge\u0026labelColor=555555\u0026logo=github\" height=\"20\"\u003e](https://github.com/zhiburt/tiny-gradient/)\n[\u003cimg alt=\"crates.io\" src=\"https://img.shields.io/crates/v/tiny-gradient.svg?style=for-the-badge\u0026color=fc8d62\u0026logo=rust\" height=\"20\"\u003e](https://crates.io/crates/tiny-gradient)\n[\u003cimg alt=\"docs.rs\" src=\"https://img.shields.io/badge/docs.rs-tiny--gradient-66c2a5?style=for-the-badge\u0026labelColor=555555\u0026logo=docs.rs\" height=\"20\"\u003e](https://docs.rs/tiny-gradient)\n\n\u003cpicture\u003e\n  \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://user-images.githubusercontent.com/20165848/180790191-63252827-64ef-4d09-8a01-384f78bf8bb1.png\"\u003e\n  \u003cimg alt=\"Preview\" src=\"https://user-images.githubusercontent.com/20165848/180790008-b1100184-ce27-42c9-8c60-8628e5833794.png\"\u003e\n\u003c/picture\u003e\n\n## Usage\n\n```rust\nuse tiny_gradient::{Gradient, GradientStr, RGB};\n\nlet text = \"Hello World!\";\n\n// Use custom gradient\nlet colored = text.gradient([RGB::new(0x01, 0x00, 0x00), RGB::new(0xDA, 0x00, 0xFF)]);\nprintln!(\"{}\", colored);\n\n// Use built-in gradient.\nlet colored = text.gradient(Gradient::Forest);\nprintln!(\"{}\", colored);\n```\n\n## Notes\n\nAll the credit should go to https://stackoverflow.com/questions/22607043/color-gradient-algorithm/.\n\nSome insiration were taken from https://github.com/bokub/gradient-string.\n\nThere's an analogues library https://crates.io/crates/colorgrad.\nI wasn't aware at the begining that it exists.\nIt seems to be more mature so you may need to take a look at it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhiburt%2Ftiny-gradient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhiburt%2Ftiny-gradient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhiburt%2Ftiny-gradient/lists"}