Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Alpha d
- pattern AlphaWord8 :: RealFrac d => Word8 -> Alpha d
- pattern AlphaWord16 :: RealFrac d => Word16 -> Alpha d
- pattern AlphaWord32 :: RealFrac d => Word32 -> Alpha d
- pattern AlphaInt32 :: RealFrac d => Int32 -> Alpha d
- alphaInt32 :: Int32 -> Maybe (Alpha d)
- pattern AlphaDouble :: Fractional d => d -> Alpha d
- alphaDouble :: (Ord d, Num d) => d -> Maybe (Alpha d)
- alphaRealToFrac :: (Real d, Fractional d') => Alpha d -> Alpha d'
- data Rgb d
- pattern RgbWord8 :: RealFrac d => Word8 -> Word8 -> Word8 -> Rgb d
- pattern RgbWord16 :: RealFrac d => Word16 -> Word16 -> Word16 -> Rgb d
- pattern RgbWord32 :: RealFrac d => Word32 -> Word32 -> Word32 -> Rgb d
- pattern RgbInt32 :: RealFrac d => Int32 -> Int32 -> Int32 -> Rgb d
- rgbInt32 :: Int32 -> Int32 -> Int32 -> Maybe (Rgb d)
- pattern RgbDouble :: Fractional d => d -> d -> d -> Rgb d
- rgbDouble :: (Ord d, Num d) => d -> d -> d -> Maybe (Rgb d)
- rgbRealToFrac :: (Real d, Fractional d') => Rgb d -> Rgb d'
- data Rgba d
- = RgbaWord8_ Word8 Word8 Word8 Word8
- | RgbaWord16_ Word16 Word16 Word16 Word16
- | RgbaWord32_ Word32 Word32 Word32 Word32
- | RgbaInt32_ Int32 Int32 Int32 Int32
- | RgbaDouble_ d d d d
- | RgbaPremultipliedWord8_ Word8 Word8 Word8 Word8
- | RgbaPremultipliedWord16_ Word16 Word16 Word16 Word16
- | RgbaPremultipliedDouble_ d d d d
- pattern RgbaWord8 :: RealFrac d => Word8 -> Word8 -> Word8 -> Word8 -> Rgba d
- pattern RgbaWord16 :: RealFrac d => Word16 -> Word16 -> Word16 -> Word16 -> Rgba d
- pattern RgbaWord32 :: RealFrac d => Word32 -> Word32 -> Word32 -> Word32 -> Rgba d
- pattern RgbaInt32 :: RealFrac d => Int32 -> Int32 -> Int32 -> Int32 -> Rgba d
- rgbaInt32 :: Int32 -> Int32 -> Int32 -> Int32 -> Maybe (Rgba d)
- pattern RgbaDouble :: (Eq d, Fractional d) => d -> d -> d -> d -> Rgba d
- rgbaDouble :: (Ord d, Num d) => d -> d -> d -> d -> Maybe (Rgba d)
- pattern RgbaPremultipliedWord8 :: RealFrac d => Word8 -> Word8 -> Word8 -> Word8 -> Rgba d
- rgbaPremultipliedWord8 :: Word8 -> Word8 -> Word8 -> Word8 -> Maybe (Rgba d)
- pattern RgbaPremultipliedWord16 :: RealFrac d => Word16 -> Word16 -> Word16 -> Word16 -> Rgba d
- rgbaPremultipliedWord16 :: Word16 -> Word16 -> Word16 -> Word16 -> Maybe (Rgba d)
- pattern RgbaPremultipliedDouble :: (Eq d, Fractional d) => d -> d -> d -> d -> Rgba d
- rgbaPremultipliedDouble :: (Ord d, Num d) => d -> d -> d -> d -> Maybe (Rgba d)
- toRgba :: RealFrac d => Rgb d -> Alpha d -> Rgba d
- fromRgba :: (Eq d, Fractional d) => Rgba d -> (Rgb d, Alpha d)
- rgbaRealToFrac :: (Real d, Fractional d') => Rgba d -> Rgba d'
Alpha
pattern AlphaDouble :: Fractional d => d -> Alpha d Source #
alphaRealToFrac :: (Real d, Fractional d') => Alpha d -> Alpha d' Source #
RGB
pattern RgbDouble :: Fractional d => d -> d -> d -> Rgb d Source #
rgbRealToFrac :: (Real d, Fractional d') => Rgb d -> Rgb d' Source #
RGBA
Straight
pattern RgbaDouble :: (Eq d, Fractional d) => d -> d -> d -> d -> Rgba d Source #
Premultiplied
pattern RgbaPremultipliedWord16 :: RealFrac d => Word16 -> Word16 -> Word16 -> Word16 -> Rgba d Source #
pattern RgbaPremultipliedDouble :: (Eq d, Fractional d) => d -> d -> d -> d -> Rgba d Source #
From and To Rgb and Alpha
Convert Fractional
rgbaRealToFrac :: (Real d, Fractional d') => Rgba d -> Rgba d' Source #