Function veloren_common::util::color::rgb_to_hsv
source ยท pub fn rgb_to_hsv(rgb: Rgb<f32>) -> Vec3<f32>
Expand description
Convert rgb to hsv. Expects rgb to be [0, 1].
pub fn rgb_to_hsv(rgb: Rgb<f32>) -> Vec3<f32>
Convert rgb to hsv. Expects rgb to be [0, 1].