#color #image #graphics #color-space #gui

tricolor

Color structs, color formats, and color conversions

3 releases

0.1.2 May 14, 2024
0.1.1 May 14, 2024
0.1.0 May 13, 2024

#698 in Math

Download history 75/week @ 2024-05-07 284/week @ 2024-05-14 1/week @ 2024-05-28

360 downloads per month

MIT/Apache

43KB
1K SLoC

tricolor

color utils for type conversion, color manipulation, and color space conversion


lib.rs:

Color conversions and types.

If you want a compact color representation, use Color32Bit. If you want to manipulate RGBA colors use ColorLinear. If you want to manipulate colors in a way closer to how humans think about colors, use ColorHsvaGamma.

Feature flags

Dependencies

~305–540KB
~10K SLoC