You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I renamed this to cover RGB types in general. I think we can keep linear sRGB as the default, since it's very common in computer graphics, and add the other variants as additional types.
Separate sRGB and gamma encoded RGB from the Rgb type
This closes#7 by adding separate types for sRGB and gamma encoded RGB. `Rgb` becomes a purely linear variant of sRGB and the types for encoded sRGB and gamma RGB can be found in a newly added `pixel` module. The `RgbPixel` trait has also been moved to the `pixel` module.
The `linear_*` prefix has also been dropped from the `Rgb` constructors and some bugs from #18 were fixed as a bonus.
This is a breaking change, since it moves, removes and renames a lot of functions, and the `RgbPixel` trait is no longer available in the crate root.
This makes it possible to make use of the type system to differ between them and linear RGB, and lowers the number of constructors on
Rgb
.Suggestion from Reddit user CryZe92
The text was updated successfully, but these errors were encountered: