use-color 0.1.0

Composable primitive color utilities for Rust.
Documentation
  • Coverage
  • 5.26%
    1 out of 19 items documented1 out of 8 items with examples
  • Size
  • Source code size: 5.61 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 419.93 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 12s Average build duration of successful builds.
  • all releases: 12s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-color

Composable primitive color utilities for Rust.

use-color provides small helpers for RGB values, hex parsing and formatting, and relative luminance.

Examples

use use_color::prelude::*;

let color = parse_hex_rgb("#3366CC").unwrap();

assert_eq!(color.to_hex_rgb(), "#3366CC");
assert!(!color.is_grayscale());