{"id":17078843,"url":"https://github.com/hatoo/blackbody","last_synced_at":"2025-07-03T07:33:07.002Z","repository":{"id":57515971,"uuid":"445148004","full_name":"hatoo/blackbody","owner":"hatoo","description":"Temperature to blackbody color","archived":false,"fork":false,"pushed_at":"2022-01-06T11:50:46.000Z","size":12,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-15T18:56:28.765Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/hatoo.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-01-06T11:37:23.000Z","updated_at":"2025-04-16T22:21:37.000Z","dependencies_parsed_at":"2022-08-28T17:33:47.932Z","dependency_job_id":null,"html_url":"https://github.com/hatoo/blackbody","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hatoo/blackbody","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatoo%2Fblackbody","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatoo%2Fblackbody/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatoo%2Fblackbody/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatoo%2Fblackbody/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hatoo","download_url":"https://codeload.github.com/hatoo/blackbody/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatoo%2Fblackbody/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263283023,"owners_count":23442278,"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":[],"created_at":"2024-10-14T12:23:42.825Z","updated_at":"2025-07-03T07:33:06.963Z","avatar_url":"https://github.com/hatoo.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# blackbody\n\n[![Crates.io](https://img.shields.io/crates/v/blackbody.svg)](https://crates.io/crates/blackbody)\n\nBlackbody simply provides functions that convert temperature into color.\nCodes are ported from [pbrt-v3](https://github.com/mmp/pbrt-v3).\n\n```rust\nuse blackbody::{temperature_to_rgb, temperature_to_xyz};\n\nfn main() {\n    // Convert temperatue (Kelvin) into RGB color whose components are [0.0, 1.0].\n    dbg!(temperature_to_rgb(3000.0));\n    // Convert temperatue (Kelvin) into XYZ color whose components are [0.0, 1.0].\n    dbg!(temperature_to_xyz(3000.0));\n}\n```\n\n```text\n[examples\\example.rs:4] temperature_to_rgb(3000.0) = [\n    0.73506474,\n    0.3504873,\n    0.112983376,\n]\n[examples\\example.rs:5] temperature_to_xyz(3000.0) = [\n    0.44889182,\n    0.4151354,\n    0.16\n]\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhatoo%2Fblackbody","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhatoo%2Fblackbody","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhatoo%2Fblackbody/lists"}