https://github.com/queer/rgb
cli hex colour helper
https://github.com/queer/rgb
Last synced: about 1 year ago
JSON representation
cli hex colour helper
- Host: GitHub
- URL: https://github.com/queer/rgb
- Owner: queer
- Created: 2023-02-03T19:34:54.000Z (over 3 years ago)
- Default Branch: mistress
- Last Pushed: 2023-02-03T19:34:59.000Z (over 3 years ago)
- Last Synced: 2025-03-10T14:55:43.281Z (over 1 year ago)
- Language: Rust
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rgb
a small tool for processing RGB colours `#rrggbb` in the terminal.
## usage
```bash
git:(mistress) 5 | ▶ cat /tmp/colours2.txt | rgb
#4f79c3: hsv(218, 151, 195) luminance_rgb(0.46044552) luminance_hsv(0.53829294)
#ee253f: hsv(352, 215, 238) luminance_rgb(0.32003844) luminance_hsv(0.5398693)
#c42e74: hsv(332, 195, 196) luminance_rgb(0.32527056) luminance_hsv(0.47474048)
#4f79c3: hsv(218, 151, 195) luminance_rgb(0.46044552) luminance_hsv(0.53829294)
#ee253f: hsv(352, 215, 238) luminance_rgb(0.32003844) luminance_hsv(0.5398693)
#c42e74: hsv(332, 195, 196) luminance_rgb(0.32527056) luminance_hsv(0.47474048)
#4f79c3: hsv(218, 151, 195) luminance_rgb(0.46044552) luminance_hsv(0.53829294)
#ee253f: hsv(352, 215, 238) luminance_rgb(0.32003844) luminance_hsv(0.5398693)
#c42e74: hsv(332, 195, 196) luminance_rgb(0.32527056) luminance_hsv(0.47474048)
#4f79c3: hsv(218, 151, 195) luminance_rgb(0.46044552) luminance_hsv(0.53829294)
#ee253f: hsv(352, 215, 238) luminance_rgb(0.32003844) luminance_hsv(0.5398693)
#c42e74: hsv(332, 195, 196) luminance_rgb(0.32527056) luminance_hsv(0.47474048)
#4f79c3: hsv(218, 151, 195) luminance_rgb(0.46044552) luminance_hsv(0.53829294)
#ee253f: hsv(352, 215, 238) luminance_rgb(0.32003844) luminance_hsv(0.5398693)
#c42e74: hsv(332, 195, 196) luminance_rgb(0.32527056) luminance_hsv(0.47474048)
#4f79c3: hsv(218, 151, 195) luminance_rgb(0.46044552) luminance_hsv(0.53829294)
#ee253f: hsv(352, 215, 238) luminance_rgb(0.32003844) luminance_hsv(0.5398693)
#c42e74: hsv(332, 195, 196) luminance_rgb(0.32527056) luminance_hsv(0.47474048)
#4f79c3: hsv(218, 151, 195) luminance_rgb(0.46044552) luminance_hsv(0.53829294)
#ee253f: hsv(352, 215, 238) luminance_rgb(0.32003844) luminance_hsv(0.5398693)
#c42e74: hsv(332, 195, 196) luminance_rgb(0.32527056) luminance_hsv(0.47474048)
#4f79c3: hsv(218, 151, 195) luminance_rgb(0.46044552) luminance_hsv(0.53829294)
#ee253f: hsv(352, 215, 238) luminance_rgb(0.32003844) luminance_hsv(0.5398693)
#c42e74: hsv(332, 195, 196) luminance_rgb(0.32527056) luminance_hsv(0.47474048)
#4f79c3: hsv(218, 151, 195) luminance_rgb(0.46044552) luminance_hsv(0.53829294)
#ee253f: hsv(352, 215, 238) luminance_rgb(0.32003844) luminance_hsv(0.5398693)
#c42e74: hsv(332, 195, 196) luminance_rgb(0.32527056) luminance_hsv(0.47474048)
#4f79c3: hsv(218, 151, 195) luminance_rgb(0.46044552) luminance_hsv(0.53829294)
#ee253f: hsv(352, 215, 238) luminance_rgb(0.32003844) luminance_hsv(0.5398693)
#c42e74: hsv(332, 195, 196) luminance_rgb(0.32527056) luminance_hsv(0.47474048)
#4f79c3: hsv(218, 151, 195) luminance_rgb(0.46044552) luminance_hsv(0.53829294)
#ee253f: hsv(352, 215, 238) luminance_rgb(0.32003844) luminance_hsv(0.5398693)
#c42e74: hsv(332, 195, 196) luminance_rgb(0.32527056) luminance_hsv(0.47474048)
rgb ranges: r(79..238) g(37..121) b(63..195)
hsv ranges: h(218..352) s(151..215) v(195..238)
luminance ranges: rgb(0.32003844..0.46044552) hsv(0.47474048..0.5398693)
git:(mistress) 5 | ▶
```