moduleGraphics.Gnuplot.ColorSpecification(T,rgb,rgb8,name,paletteFrac,white,black,gray0,grey0,gray10,grey10,gray20,grey20,gray30,grey30,gray40,grey40,gray50,grey50,gray60,grey60,gray70,grey70,gray80,grey80,gray90,grey90,gray100,grey100,gray,grey,lightGray,lightGrey,darkGray,darkGrey,red,lightRed,darkRed,yellow,lightYellow,darkYellow,green,lightGreen,darkGreen,springGreen,forestGreen,seaGreen,blue,lightBlue,darkBlue,midnightBlue,navy,mediumBlue,royalblue,skyblue,cyan,lightCyan,darkCyan,magenta,lightMagenta,darkMagenta,turquoise,lightTurquoise,darkTurquoise,pink,lightPink,darkPink,coral,lightCoral,orangeRed,salmon,lightSalmon,darkSalmon,aquamarine,khaki,darkKhaki,goldenrod,lightGoldenrod,darkGoldenrod,gold,beige,brown,orange,darkOrange,violet,darkViolet,plum,purple,)whereimportqualifiedGraphics.Gnuplot.Private.ColorSpecificationasColorimportGraphics.Gnuplot.Private.ColorSpecification(T,)importData.Ord.HT(limit,)importData.Word(Word8,){- |
Color components for Red, Green, Blue, must be in the range @[0,1]@.
-}rgb::Double->Double->Double->Trgbrgb=rgb8(word8FromDoubler)(word8FromDoubleg)(word8FromDoubleb)word8FromDouble::Double->Word8word8FromDoublec=round(limit(0,1)c*255)rgb8::Word8->Word8->Word8->Trgb8=Color.RGB8paletteFrac::Double->TpaletteFrac=Color.PaletteFrac{- |
Specify a color by name.
You are responsible for choosing an existing name in gnuplot.
If your color is available as Haskell variable in this module,
then prefer this one.
-}name::String->Tname=Color.Name{-
This function chooses how we represent below colors in gnuplot.
If we use RGB values then we stay independent from the available color names
in the current gnuplot version.
If we use color names, then the generated gnuplot scripts are more readable.
-}makeColor::String->Int->Word8->Word8->Word8->TmakeColorstr____=namestrwhite,black,gray0,grey0,gray10,grey10,gray20,grey20,gray30,grey30,gray40,grey40,gray50,grey50,gray60,grey60,gray70,grey70,gray80,grey80,gray90,grey90,gray100,grey100,gray,grey,lightGray,lightGrey,darkGray,darkGrey,red,lightRed,darkRed,yellow,lightYellow,darkYellow,green,lightGreen,darkGreen,springGreen,forestGreen,seaGreen,blue,lightBlue,darkBlue,midnightBlue,navy,mediumBlue,royalblue,skyblue,cyan,lightCyan,darkCyan,magenta,lightMagenta,darkMagenta,turquoise,lightTurquoise,darkTurquoise,pink,lightPink,darkPink,coral,lightCoral,orangeRed,salmon,lightSalmon,darkSalmon,aquamarine,khaki,darkKhaki,goldenrod,lightGoldenrod,darkGoldenrod,gold,beige,brown,orange,darkOrange,violet,darkViolet,plum,purple::T{-
gnuplot> show colornames
-}white=makeColor"white"0xffffff255255255black=makeColor"black"0x000000000gray0=makeColor"gray0"0x000000000grey0=makeColor"grey0"0x000000000gray10=makeColor"gray10"0x1a1a1a262626grey10=makeColor"grey10"0x1a1a1a262626gray20=makeColor"gray20"0x333333515151grey20=makeColor"grey20"0x333333515151gray30=makeColor"gray30"0x4d4d4d777777grey30=makeColor"grey30"0x4d4d4d777777gray40=makeColor"gray40"0x666666102102102grey40=makeColor"grey40"0x666666102102102gray50=makeColor"gray50"0x7f7f7f127127127grey50=makeColor"grey50"0x7f7f7f127127127gray60=makeColor"gray60"0x999999153153153grey60=makeColor"grey60"0x999999153153153gray70=makeColor"gray70"0xb3b3b3179179179grey70=makeColor"grey70"0xb3b3b3179179179gray80=makeColor"gray80"0xcccccc204204204grey80=makeColor"grey80"0xcccccc204204204gray90=makeColor"gray90"0xe5e5e5229229229grey90=makeColor"grey90"0xe5e5e5229229229gray100=makeColor"gray100"0xffffff255255255grey100=makeColor"grey100"0xffffff255255255gray=makeColor"gray"0xbebebe190190190grey=makeColor"grey"0xbebebe190190190lightGray=makeColor"light-gray"0xd3d3d3211211211lightGrey=makeColor"light-grey"0xd3d3d3211211211darkGray=makeColor"dark-gray"0xa9a9a9169169169darkGrey=makeColor"dark-grey"0xa9a9a9169169169red=makeColor"red"0xff000025500lightRed=makeColor"light-red"0xf032322405050darkRed=makeColor"dark-red"0x8b000013900yellow=makeColor"yellow"0xffff002552550lightYellow=makeColor"light-yellow"0xffffe0255255224darkYellow=makeColor"dark-yellow"0xc8c8002002000green=makeColor"green"0x00ff0002550lightGreen=makeColor"light-green"0x90ee90144238144darkGreen=makeColor"dark-green"0x00640001000springGreen=makeColor"spring-green"0x00ff7f0255127forestGreen=makeColor"forest-green"0x228b223413934seaGreen=makeColor"sea-green"0x2e8b574613987blue=makeColor"blue"0x0000ff00255lightBlue=makeColor"light-blue"0xadd8e6173216230darkBlue=makeColor"dark-blue"0x00008b00139midnightBlue=makeColor"midnight-blue"0x1919702525112navy=makeColor"navy"0x00008000128mediumBlue=makeColor"medium-blue"0x0000cd00205royalblue=makeColor"royalblue"0x4169e165105225skyblue=makeColor"skyblue"0x87ceeb135206235cyan=makeColor"cyan"0x00ffff0255255lightCyan=makeColor"light-cyan"0xe0ffff224255255darkCyan=makeColor"dark-cyan"0x008b8b0139139magenta=makeColor"magenta"0xff00ff2550255lightMagenta=makeColor"light-magenta"0xf055f024085240darkMagenta=makeColor"dark-magenta"0x8b008b1390139turquoise=makeColor"turquoise"0x40e0d064224208lightTurquoise=makeColor"light-turquoise"0xafeeee175238238darkTurquoise=makeColor"dark-turquoise"0x00ced10206209pink=makeColor"pink"0xffc0cb255192203lightPink=makeColor"light-pink"0xffb6c1255182193darkPink=makeColor"dark-pink"0xff149325520147coral=makeColor"coral"0xff7f5025512780lightCoral=makeColor"light-coral"0xf08080240128128orangeRed=makeColor"orange-red"0xff4500255690salmon=makeColor"salmon"0xfa8072250128114lightSalmon=makeColor"light-salmon"0xffa07a255160122darkSalmon=makeColor"dark-salmon"0xe9967a233150122aquamarine=makeColor"aquamarine"0x7fffd4127255212khaki=makeColor"khaki"0xf0e68c240230140darkKhaki=makeColor"dark-khaki"0xbdb76b189183107goldenrod=makeColor"goldenrod"0xdaa52021816532lightGoldenrod=makeColor"light-goldenrod"0xeedd82238221130darkGoldenrod=makeColor"dark-goldenrod"0xb8860b18413411gold=makeColor"gold"0xffd7002552150beige=makeColor"beige"0xf5f5dc245245220brown=makeColor"brown"0xa52a2a1654242orange=makeColor"orange"0xffa5002551650darkOrange=makeColor"dark-orange"0xff8c002551400violet=makeColor"violet"0xee82ee238130238darkViolet=makeColor"dark-violet"0x9400d31480211plum=makeColor"plum"0xdda0dd221160221purple=makeColor"purple"0xa020f016032240