-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why does Color::rgb use f32 instead of u8? #364
Comments
What values are useful depends on the situation. HDR rendering and HDR images for example (high dynamic range) need to be able to go above |
@karroffel Thank you for your reply. This is a very common one. Is it necessary to add |
I'm sure a function like that can be added, I wouldn't think that should be a problem :) I personally don't use normalised |
Yeah we do need floats in some cases. But |
I'd suggest normalizing with the |
u8:
In many cases, rgb uses numbers from 0-255, and using u8 will not appear invalid colors
f32:
f32 cannot verify the correctness of the value
The text was updated successfully, but these errors were encountered: