use palette::RgbHue;
let h = RgbHue::new(128_u8);
println!("{:?}", h);
let h = h.into_format::<f32>();
println!("{:?}", h);
assert_eq!(h, RgbHue::new(180_f32));
println!("====");
let h = RgbHue::new(180_f32);
println!("{:?}", h);
let h = h.into_format::<u8>();
println!("{:?}", h);
assert_eq!(h, RgbHue::new(128_u8));
Issue with Angle Conversion from
f32
,f64
tou8
https://github.com/Ogeon/palette/blob/c54efbd43c03267713da337bd72005c9d0390598/palette/src/angle.rs#L162-L174
How To Reproduce
Expected Outcome
Actual Outcome
Additional Details
rustc 1.75.0 (82e1608df 2023-12-21)
aarch64-apple-darwin