@@ -1,6 +1,6 @@
11-- This header file was generated by ./256colres.pl
22module Graphics.Vty.Attributes.Color240
3− ( make240ColorCodeFromRGB
3+ ( rgbColorToColor240
44 , color240CodeToRGB
55 )
66where
@@ -12,8 +12,8 @@ import Text.Printf
1212-- 256colres.pl which is forked from xterm 256colres.pl.
1313
1414-- | Create a value in the Color240 set from an RGB triple
15−make240ColorCodeFromRGB :: Integral i => i -> i -> i -> Word8
16−make240ColorCodeFromRGB r g b
15+rgbColorToColor240 :: Integral i => i -> i -> i -> Word8
16+rgbColorToColor240 r g b
1717 | r < 0 && g < 0 && b < 0 = error "rgbColor with negative color component intensity"
1818 | r == 8 && g == 8 && b == 8 = 216
1919 | r == 18 && g == 18 && b == 18 = 217