ยค queryColor, queryColorF

Color

Types

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

Synopsis

queryColor colormap pixel colkernel
data Color = Color {colorPixel :: Pixel, colorRGB :: RGB}
data Pixel = Pixel Word

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 -> f b ho
a fudget kernel continuation (or fudget in case of queryColorF) parameterized by the returned color.

See Also

allocColor et al, XQueryColor in the Xlib Programming Manual .