ยค allocNamedColorDef, allocNamedColorDefPixel
Color
Types
allocNamedColorDef :: FudgetIO f =>
ColormapId -> ColorName -> String -> Cont (f hi ho) Color
allocNamedColorDefPixel :: FudgetIO f =>
ColormapId ->
ColorName -> String -> (Pixel -> f hi ho) -> f hi ho
Synopsis
allocNamedColorDef colormap cname fallback
Description
These functions try to allocate a named color. If that fails, a
warning message is given, and a fallback color is allocated instead. If
that fails, the functions fail.
Arguments
colormap :: ColormapId
- the colormap in which an entry is allocated.
defaultColormap
is the only supported colormap in the current implementation.
cname :: ColorName
- the name of the color
fallback :: String
- the name of the fallback color
See Also
allocNamedColor,
allocNamedColorPixel,
tryAllocNamedColor