Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add some missing
From
impls between Srgb and LinSrgb types
I ran into an issue downstream when attempting to write a generic function that would accept any type of colour that may be converted to `Srgb<T>`. I noticed implementations seemed to exist for all of the colour types I cared about apart from `LinSrgb<T>`, so I thought I'd implement the missing conversions and open a PR! Let me know if there's a reason that these have been omitted that I'm overlooking, or if you have a better way in mind for adding these conversions! Unfortunately, conversions between entirely generic `Rgb<S, T>` and `Rgb<St, U>` are impossible due to the existing blanket `impl From<T> for T`, but adding individual implementations for the RGB standards we care about doesn't seem so bad :)
- Loading branch information