Use srgb, get mix and blend working
This commit is contained in:
parent
bdb06f183b
commit
dde0056845
2 changed files with 112 additions and 65 deletions
|
@ -147,10 +147,3 @@ pub fn color_alpha(color: Hsla, alpha: f32) -> Hsla {
|
|||
color.a = alpha;
|
||||
color
|
||||
}
|
||||
|
||||
pub fn to_gpui_hsla(color: color::Color) -> gpui::Hsla {
|
||||
let hsla = color.value();
|
||||
let hue: f32 = hsla.hue.into();
|
||||
|
||||
gpui::hsla(hue / 360.0, hsla.saturation, hsla.lightness, hsla.alpha)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue