Registry / utility / hsl
library0.1.1rscratesunverified

Represent colors in HSL and convert between HSL and RGB.

# Cargo.toml [dependencies] hsl = "0.1.1"
INSTALL
IMPORT
SIG · HSL
H
hsl
utilityrustv0.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

HSL
use hsl::HSL;

Convert HSL to RGB.

use hsl::HSL; fn main() { let color = HSL { h: 0.0, s: 1.0, l: 0.5 }; let rgb = color.to_rgb(); println!("{:?}", rgb); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
hsl — cargo add hsl · libregistry