31 releases
Uses new Rust 2024
| 0.34.1 | Mar 27, 2026 |
|---|---|
| 0.33.3 | Dec 11, 2025 |
| 0.33.2 | Nov 13, 2025 |
| 0.32.0 | Jul 10, 2025 |
| 0.20.0 | Dec 8, 2022 |
#338 in Math
1,233,751 downloads per month
Used in 1,414 crates
(13 directly)
210KB
4.5K
SLoC
Color conversions and types.
This crate is built for the wants and needs of egui.
If you want an actual good color crate, use color instead.
If you want a compact color representation, use Color32.
If you want to manipulate RGBA colors in linear space use Rgba.
If you want to manipulate colors in a way closer to how humans think about colors, use HsvaGamma.
Conventions
The word "gamma" or "srgb" is used to refer to values in the non-linear space defined by
the sRGB transfer function.
We use u8 for anything in the "gamma" space.
We use f32 in 0-1 range for anything in the linear space.
Feature flags
document_features::document_features!())]
ecolor - egui color library
A simple color storage and conversion library.
This crate is built for the wants and needs of egui.
If you want an actual good color crate, use color instead.
Dependencies
~215KB