mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 04:40:03 -04:00
Split out ecolor crate (#2399)
* split out ecolor crate * split up ecolor crate in lots of modules * add changelog notes * add readme to ecolor * put clippy::manual_range_contains on cranky allow list * fix hex color issues * doc fixes * more hex_color fixes * Document features * Rename hex_color module to avoid warning * Sort the feature names * fix link in CHANGELOG.md * better wording Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
This commit is contained in:
@@ -127,7 +127,7 @@ impl ColorImage {
|
||||
let s = 1.0;
|
||||
let v = 1.0;
|
||||
let a = y as f32 / height as f32;
|
||||
img[(x, y)] = crate::color::Hsva { h, s, v, a }.into();
|
||||
img[(x, y)] = crate::Hsva { h, s, v, a }.into();
|
||||
}
|
||||
}
|
||||
img
|
||||
|
||||
Reference in New Issue
Block a user