¤ queryColor, queryColorF

Types

queryColor :: (FudgetIO c) => ColormapId -> Pixel -> (Color -> c a b) -> c a b
queryColorF :: ColormapId -> Pixel -> Cont (F a b) Color

Synopsis

queryColor colormap pixel colkernel

data Color = Color Pixel RGB
data Pixel = Pixel Int

Descriptions

These functions allow you to find out what color a given pixel value defines in a colormap.

Arguments

colormap :: ColormapId
a colormap
pixel :: Pixel
a pixel value
colkernel :: Color -> c a b
a fudget kernel continuation (or fudget in case of queryColorF) parameterized by the returned color.

See Also

allocColor et al, XQueryColor in the Xlib Reference Manual .