-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
06382a3
commit d7b3ecc
Showing
1 changed file
with
9 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I believe that this function basically duplicates functionality that already exists in
Data.Colour
.My understanding is that
toRGBUsingSpace
is provided for custom color spaces, sinceData.Colour
providestoSRGB
. Which is basically the same function specialized to the sRGB color space. The new version is simpler and equal to the existing one (at least as far as quickCheck can tell.