notation_bevy_utils 0.4.2

Fun notation - bevy utils
1
2
3
4
5
6
7
8
9
10
11
use bevy::prelude::*;
use bevy_egui::egui::color::Hsva;

use super::BevyUtil;

impl BevyUtil {
    pub fn rgb_to_egui(color: &Color) -> Hsva {
        let v = color.as_linear_rgba_f32();
        Hsva::from_rgb([v[0], v[1], v[2]])
    }
}