ยค RGB, Pixel, et al

Drawing: colors

Types

data RGB = RGB Int Int Int
instance Ix RGB
instance Eq RGB
instance Ord RGB
instance Read RGB
instance Show RGB
instance ColorGen RGB

data Pixel = Pixel Word
instance Eq Pixel
instance Ord Pixel
instance Read Pixel
instance Show Pixel
instance ColorGen Pixel

data Color = Color {colorPixel :: Pixel, colorRGB :: RGB}
instance Eq Color
instance Ord Color
instance Read Color
instance Show Color

maxRGB :: Int
blackRGB :: RGB
grayRGB :: Int -> RGB
whiteRGB :: RGB
pixel0 :: Pixel
pixel1 :: Pixel

Description

Type for colors, corresponding more or less directly to definitions found in the Xlib library.

See Also

The Xlib Programming Manual .