Open jeffreyrosenbluth opened 1 year ago
Will take a look. Does float operations already const in Rust?
emmm,it still not,but i think const fn is stil should be add
It will be added when I would have time.
I have see the source code and find it seem not easy to do it . Because from_rgba use NormalizedF32:new_u8()
and this function is also not const. And to make this function constable it may use f32::from::<u8>()
but it is also not constable...
It would be nice to have a const version of this so it is possible to create color names in an application.