License | BSD-3-Clause |
---|---|
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- kolorToAttrColor :: Kolor -> Color
- bgWithAutoForeground :: Kolor -> Attr
Documentation
kolorToAttrColor :: Kolor -> Color Source #
bgWithAutoForeground :: Kolor -> Attr Source #
Automatically selects black or white for the foreground based on the luminance of the supplied background.