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

Download history 104121/week @ 2025-12-27 201719/week @ 2026-01-03 218046/week @ 2026-01-10 317317/week @ 2026-01-17 323799/week @ 2026-01-24 281740/week @ 2026-01-31 233624/week @ 2026-02-07 216149/week @ 2026-02-14 229242/week @ 2026-02-21 226922/week @ 2026-02-28 237055/week @ 2026-03-07 244175/week @ 2026-03-14 263950/week @ 2026-03-21 278827/week @ 2026-03-28 315883/week @ 2026-04-04 336954/week @ 2026-04-11

1,233,751 downloads per month
Used in 1,414 crates (13 directly)

MIT/Apache

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

Latest version Documentation unsafe forbidden MIT Apache

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