rgb-color-model-0.2.0.0: Haskell types for working with RGB colors
RGBColorModel
data ColorIntensity Source #
Constructors
Instances
Methods
showsPrec :: Int -> ColorIntensity -> ShowS #
show :: ColorIntensity -> String #
showList :: [ColorIntensity] -> ShowS #
data Component Source #
showsPrec :: Int -> Component -> ShowS #
show :: Component -> String #
showList :: [Component] -> ShowS #
type RGBColorIntensity = (ColorIntensity, ColorIntensity, ColorIntensity) Source #
data RGBColor Source #
Fields
showsPrec :: Int -> RGBColor -> ShowS #
show :: RGBColor -> String #
showList :: [RGBColor] -> ShowS #
data Error Source #
showsPrec :: Int -> Error -> ShowS #
show :: Error -> String #
showList :: [Error] -> ShowS #
mkColorIntensity :: Integer -> Either Error ColorIntensity Source #
mkRGBColor :: Component -> Component -> Component -> Either Error RGBColor Source #
mkRGBColor' :: (Integer, Integer, Integer) -> Either Error RGBColor Source #
in256Range :: Integer -> Bool Source #