mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 05:40:03 -04:00
Use Grid to add labels to the color picker sliders
Also improve the color preview in the color picker
This commit is contained in:
@@ -436,6 +436,10 @@ impl Hsva {
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
pub fn to_opaque(self) -> Self {
|
||||
Self { a: 1.0, ..self }
|
||||
}
|
||||
|
||||
pub fn to_rgb(&self) -> [f32; 3] {
|
||||
rgb_from_hsv((self.h, self.s, self.v))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user