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
where arbitraryElevator gives either the full range of values (for discrete quanta like Word8) or the range [0,1] for Float and Double. However, LAB at least (and possibly others) uses a different range: L can go from 0 to 100, while a and b vary in a similar range, depending on L, and can also be negative. Thus, right now the spec tests are only checking colors very close to black. I'm not sure how this can be handled within QuickCheck.
The text was updated successfully, but these errors were encountered:
You are absolutely right about this. We need a new concept of min max values on per channel basis, which has to be at the ColorModel level in order to get this done properly. Arbitrary instance however can be fixed before we get it figure out a proper solution.
I noticed that the test specifications for e.g.
LAB
use the sameAbritrary
instance as others:where
arbitraryElevator
gives either the full range of values (for discrete quanta likeWord8
) or the range [0,1] forFloat
andDouble
. However,LAB
at least (and possibly others) uses a different range:L
can go from 0 to 100, whilea
andb
vary in a similar range, depending onL
, and can also be negative. Thus, right now the spec tests are only checking colors very close to black. I'm not sure how this can be handled within QuickCheck.The text was updated successfully, but these errors were encountered: