1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-03 07:10:04 -04:00

Add Color32::lerp_to_gamma (#4627)

Add `lerp_to_gamma` utility function to `Color32`

---------

Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
This commit is contained in:
Antoine Beyeler
2024-06-06 15:41:10 +02:00
committed by GitHub
parent 1f008fb730
commit 2545939c15
4 changed files with 19 additions and 11 deletions

View File

@@ -30,6 +30,8 @@ default = []
[dependencies]
emath.workspace = true
#! ### Optional dependencies
## [`bytemuck`](https://docs.rs/bytemuck) enables you to cast `ecolor` types to `&[u8]`.