|
|
|
Description |
Specifies Colours in accordance with the sRGB standard.
|
|
Synopsis |
|
sRGB24 :: (Ord b, Floating b) => Word8 -> Word8 -> Word8 -> Colour b | | sRGBBounded :: (Ord b, Floating b, Integral a, Bounded a) => a -> a -> a -> Colour b | | sRGB :: (Ord b, Floating b) => b -> b -> b -> Colour b | | toSRGB24 :: (RealFrac b, Floating b) => Colour b -> (Word8, Word8, Word8) | | toSRGBBounded :: (RealFrac b, Floating b, Integral a, Bounded a) => Colour b -> (a, a, a) | | toSRGB :: (RealFrac b, Floating b) => Colour b -> (b, b, b) | | sRGB24shows :: (RealFrac b, Floating b) => Colour b -> ShowS | | sRGB24show :: (RealFrac b, Floating b) => Colour b -> String | | sRGB24reads :: (RealFrac b, Floating b) => ReadS (Colour b) | | sRGB24read :: (RealFrac b, Floating b) => String -> Colour b |
|
|
Documentation |
|
|
Construct a colour from a 24-bit (three 8-bit words) sRGB
specification.
|
|
|
Construct a colour from an sRGB specification.
Input components are expected to be in the range [0..maxBound].
|
|
|
Construct a colour from an sRGB specification.
Input components are expected to be in the range [0..1].
|
|
|
Return the approximate 24-bit sRGB colour components as three 8-bit
components.
Out of range values are clamped.
|
|
|
Return the approximate sRGB colour components in the range
[0..maxBound].
Out of range values are clamped.
|
|
|
Return the sRGB colour components in the range [0..1].
|
|
|
Show a colour in hexadecimal form, e.g. "#00aaff"
|
|
|
Show a colour in hexadecimal form, e.g. "#00aaff"
|
|
|
Read a colour in hexadecimal form, e.g. "#00aaff" or "00aaff"
|
|
|
Read a colour in hexadecimal form, e.g. "#00aaff" or "00aaff"
|
|
Produced by Haddock version 2.6.0 |