Module: RGhost::Constants::Colors

Defined in:
lib/rghost/constants.rb

Overview

Color map

Constant Summary collapse

RGB =
RGhost::Constants::HashKeyMethodClass[
  :aliceBlue => [0.941176470588235,0.972549019607843,1.0],
  :antiqueWhite => [0.980392156862745,0.92156862745098,0.843137254901961],
  :aqua => [0.0,1.0,1.0],
  :aquamarine => [0.498039215686275,1.0,0.831372549019608],
  :azure => [0.941176470588235,1.0,1.0],
  :beige => [0.96078431372549,0.96078431372549,0.862745098039216],
  :bisque => [1.0,0.894117647058824,0.768627450980392],
  :black => [0.0,0.0,0.0],
  :blanchedAlmond => [1.0,0.92156862745098,0.803921568627451],
  :blue => [0.0,0.0,1.0],
  :blueViolet => [0.541176470588235,0.168627450980392,0.886274509803922],
  :brown => [0.647058823529412,0.164705882352941,0.164705882352941],
  :burlyWood => [0.870588235294118,0.72156862745098,0.529411764705882],
  :cadetBlue => [0.372549019607843,0.619607843137255,0.627450980392157],
  :chartreuse => [0.498039215686275,1.0,0.0],
  :chocolate => [0.823529411764706,0.411764705882353,0.117647058823529],
  :coral => [1.0,0.498039215686275,0.313725490196078],
  :cornflowerBlue => [0.392156862745098,0.584313725490196,0.929411764705882],
  :cornsilk => [1.0,0.972549019607843,0.862745098039216],
  :crimson => [0.862745098039216,0.0784313725490196,0.235294117647059],
  :cyan => [0.0,1.0,1.0],
  :darkBlue => [0.0,0.0,0.545098039215686],
  :darkCyan => [0.0,0.545098039215686,0.545098039215686],
  :darkGoldenRod => [0.72156862745098,0.525490196078431,0.0431372549019608],
  :darkGray => [0.662745098039216,0.662745098039216,0.662745098039216],
  :darkGreen => [0.0,0.392156862745098,0.0],
  :darkGrey => [0.662745098039216,0.662745098039216,0.662745098039216],
  :darkKhaki => [0.741176470588235,0.717647058823529,0.419607843137255],
  :darkMagenta => [0.545098039215686,0.0,0.545098039215686],
  :darkOliveGreen => [0.333333333333333,0.419607843137255,0.184313725490196],
  :darkOrchid => [0.6,0.196078431372549,0.8],
  :darkRed => [0.545098039215686,0.0,0.0],
  :darkSalmon => [0.913725490196078,0.588235294117647,0.47843137254902],
  :darkSeaGreen => [0.56078431372549,0.737254901960784,0.56078431372549],
  :darkSlateBlue => [0.282352941176471,0.23921568627451,0.545098039215686],
  :darkSlateGray => [0.184313725490196,0.309803921568627,0.309803921568627],
  :darkSlateGrey => [0.184313725490196,0.309803921568627,0.309803921568627],
  :darkTurquoise => [0.0,0.807843137254902,0.819607843137255],
  :darkViolet => [0.580392156862745,0.0,0.827450980392157],
  :darkorange => [1.0,0.549019607843137,0.0],
  :deepPink => [1.0,0.0784313725490196,0.576470588235294],
  :deepSkyBlue => [0.0,0.749019607843137,1.0],
  :dimGray => [0.411764705882353,0.411764705882353,0.411764705882353],
  :dimGrey => [0.411764705882353,0.411764705882353,0.411764705882353],
  :dodgerBlue => [0.117647058823529,0.564705882352941,1.0],
  :direBrick => [0.698039215686274,0.133333333333333,0.133333333333333],
  :dloralWhite => [1.0,0.980392156862745,0.941176470588235],
  :dorestGreen => [0.133333333333333,0.545098039215686,0.133333333333333],
  :duchsia => [1.0,0.0,1.0],
  :gainsboro => [0.862745098039216,0.862745098039216,0.862745098039216],
  :ghostWhite => [0.972549019607843,0.972549019607843,1.0],
  :gold => [1.0,0.843137254901961,0.0],
  :goldenRod => [0.854901960784314,0.647058823529412,0.125490196078431],
  :gray => [0.501960784313725,0.501960784313725,0.501960784313725],
  :green => [0.0,0.501960784313725,0.0],
  :greenYellow => [0.67843137254902,1.0,0.184313725490196],
  :grey => [0.501960784313725,0.501960784313725,0.501960784313725],
  :honeyDew => [0.941176470588235,1.0,0.941176470588235],
  :hotPink => [1.0,0.411764705882353,0.705882352941177],
  :indianRed => [0.803921568627451,0.36078431372549,0.36078431372549],
  :indigo => [0.294117647058824,0.0,0.509803921568627],
  :ivory => [1.0,1.0,0.941176470588235],
  :khaki => [0.941176470588235,0.901960784313726,0.549019607843137],
  :lavenderBlush => [1.0,0.941176470588235,0.96078431372549],
  :lavender => [0.901960784313726,0.901960784313726,0.980392156862745],
  :lawnGreen => [0.486274509803922,0.988235294117647,0.0],
  :lemonChiffon => [1.0,0.980392156862745,0.803921568627451],
  :lightBlue => [0.67843137254902,0.847058823529412,0.901960784313726],
  :lightCoral => [0.941176470588235,0.501960784313725,0.501960784313725],
  :lightCyan => [0.87843137254902,1.0,1.0],
  :lightGoldenRodYellow => [0.980392156862745,0.980392156862745,0.823529411764706],
  :lightGray => [0.827450980392157,0.827450980392157,0.827450980392157],
  :lightGreen => [0.564705882352941,0.933333333333333,0.564705882352941],
  :lightGrey => [0.827450980392157,0.827450980392157,0.827450980392157],
  :lightPink => [1.0,0.713725490196078,0.756862745098039],
  :lightSalmon => [1.0,0.627450980392157,0.47843137254902],
  :lightSeaGreen => [0.125490196078431,0.698039215686274,0.666666666666667],
  :lightSkyBlue => [0.529411764705882,0.807843137254902,0.980392156862745],
  :lightSlateGray => [0.466666666666667,0.533333333333333,0.6],
  :lightSlateGrey => [0.466666666666667,0.533333333333333,0.6],
  :lightSteelBlue => [0.690196078431373,0.768627450980392,0.870588235294118],
  :lightYellow => [1.0,1.0,0.87843137254902],
  :lime => [0.0,1.0,0.0],
  :limeGreen => [0.196078431372549,0.803921568627451,0.196078431372549],
  :linen => [0.980392156862745,0.941176470588235,0.901960784313726],
  :magenta => [1.0,0.0,1.0],
  :maroon => [0.501960784313725,0.0,0.0],
  :mediumAquaMarine => [0.4,0.803921568627451,0.666666666666667],
  :mediumBlue => [0.0,0.0,0.803921568627451],
  :mediumOrchid => [0.729411764705882,0.333333333333333,0.827450980392157],
  :mediumPurple => [0.576470588235294,0.43921568627451,0.847058823529412],
  :mediumSeaGreen => [0.235294117647059,0.701960784313725,0.443137254901961],
  :mediumSlateBlue => [0.482352941176471,0.407843137254902,0.933333333333333],
  :mediumSpringGreen => [0.0,0.980392156862745,0.603921568627451],
  :mediumTurquoise => [0.282352941176471,0.819607843137255,0.8],
  :mediumVioletRed => [0.780392156862745,0.0823529411764706,0.52156862745098],
  :midnightBlue => [0.0980392156862745,0.0980392156862745,0.43921568627451],
  :mintCream => [0.96078431372549,1.0,0.980392156862745],
  :mistyRose => [1.0,0.894117647058824,0.882352941176471],
  :moccasin => [1.0,0.894117647058824,0.709803921568627],
  :navajoWhite => [1.0,0.870588235294118,0.67843137254902],
  :navy => [0.0,0.0,0.501960784313725],
  :oldLace => [0.992156862745098,0.96078431372549,0.901960784313726],
  :olive => [0.501960784313725,0.501960784313725,0.0],
  :oliveDrab => [0.419607843137255,0.556862745098039,0.137254901960784],
  :orange => [1.0,0.647058823529412,0.0],
  :orangeRed => [1.0,0.270588235294118,0.0],
  :orchid => [0.854901960784314,0.43921568627451,0.83921568627451],
  :paleGoldenRod => [0.933333333333333,0.909803921568627,0.666666666666667],
  :paleGreen => [0.596078431372549,0.984313725490196,0.596078431372549],
  :paleTurquoise => [0.686274509803922,0.933333333333333,0.933333333333333],
  :paleVioletRed => [0.847058823529412,0.43921568627451,0.576470588235294],
  :papayaWhip => [1.0,0.937254901960784,0.835294117647059],
  :peachPuff => [1.0,0.854901960784314,0.725490196078431],
  :peru => [0.803921568627451,0.52156862745098,0.247058823529412],
  :pink => [1.0,0.752941176470588,0.796078431372549],
  :plum => [0.866666666666667,0.627450980392157,0.866666666666667],
  :powderBlue => [0.690196078431373,0.87843137254902,0.901960784313726],
  :purple => [0.501960784313725,0.0,0.501960784313725],
  :red => [1.0,0.0,0.0],
  :rosyBrown => [0.737254901960784,0.56078431372549,0.56078431372549],
  :royalBlue => [0.254901960784314,0.411764705882353,0.882352941176471],
  :saddleBrown => [0.545098039215686,0.270588235294118,0.0745098039215686],
  :salmon => [0.980392156862745,0.501960784313725,0.447058823529412],
  :sandyBrown => [0.956862745098039,0.643137254901961,0.376470588235294],
  :seaGreen => [0.180392156862745,0.545098039215686,0.341176470588235],
  :seaShell => [1.0,0.96078431372549,0.933333333333333],
  :sienna => [0.627450980392157,0.32156862745098,0.176470588235294],
  :silver => [0.752941176470588,0.752941176470588,0.752941176470588],
  :skyBlue => [0.529411764705882,0.807843137254902,0.92156862745098],
  :slateBlue => [0.415686274509804,0.352941176470588,0.803921568627451],
  :slateGray => [0.43921568627451,0.501960784313725,0.564705882352941],
  :slateGrey => [0.43921568627451,0.501960784313725,0.564705882352941],
  :snow => [1.0,0.980392156862745,0.980392156862745],
  :springGreen => [0.0,1.0,0.498039215686275],
  :steelBlue => [0.274509803921569,0.509803921568627,0.705882352941177],
  :tan => [0.823529411764706,0.705882352941177,0.549019607843137],
  :teal => [0.0,0.501960784313725,0.501960784313725],
  :thistle => [0.847058823529412,0.749019607843137,0.847058823529412],
  :tomato => [1.0,0.388235294117647,0.27843137254902],
  :turquoise => [0.250980392156863,0.87843137254902,0.815686274509804],
  :violet => [0.933333333333333,0.509803921568627,0.933333333333333],
  :wheat => [0.96078431372549,0.870588235294118,0.701960784313725],
  :white => [1.0,1.0,1.0],
  :whiteSmoke => [0.96078431372549,0.96078431372549,0.96078431372549],
  :yellow => [1.0,1.0,0.0],
  :yellowGreen => [0.603921568627451,0.803921568627451,0.196078431372549]
]
CMYK =
RGhost::Constants::HashKeyMethodClass[
  :AliceBlue => [0.0588235294117647,0.0274509803921569,0.0,0.0],
  :AntiqueWhite => [0.0,0.06,0.14,0.0196078431372549],
  :Aqua => [1.0,0.0,0.0,0.0],
  :Aquamarine => [0.501960784313725,0.0,0.168627450980392,0.0],
  :Azure => [0.0588235294117647,0.0,0.0,0.0],
  :Beige => [0.0,0.0,0.102040816326531,0.0392156862745098],
  :Bisque => [0.0,0.105882352941176,0.231372549019608,0.0],
  :Black => [0.0,0.0,0.0,1.0],
  :BlanchedAlmond => [0.0,0.0784313725490197,0.196078431372549,0.0],
  :Blue => [1.0,1.0,0.0,0.0],
  :BlueViolet => [0.389380530973451,0.809734513274336,0.0,0.113725490196078],
  :Brown => [0.0,0.745454545454545,0.745454545454545,0.352941176470588],
  :BurlyWood => [0.0,0.171171171171171,0.391891891891892,0.129411764705882],
  :CadetBlue => [0.40625,0.0125,0.0,0.372549019607843],
  :Chartreuse => [0.501960784313725,0.0,1.0,0.0],
  :Chocolate => [0.0,0.5,0.857142857142857,0.176470588235294],
  :Coral => [0.0,0.501960784313725,0.686274509803922,0.0],
  :CornflowerBlue => [0.578059071729958,0.371308016877637,0.0,0.0705882352941176],
  :Cornsilk => [0.0,0.0274509803921569,0.137254901960784,0.0],
  :Crimson => [0.0,0.909090909090909,0.727272727272727,0.137254901960784],
  :Cyan => [1.0,0.0,0.0,0.0],
  :DarkBlue => [1.0,1.0,0.0,0.454901960784314],
  :DarkCyan => [1.0,0.0,0.0,0.454901960784314],
  :DarkGoldenRod => [0.0,0.271739130434783,0.940217391304348,0.27843137254902],
  :DarkGray => [0.0,0.0,0.0,0.337254901960784],
  :DarkGreen => [1.0,0.0,1.0,0.607843137254902],
  :DarkGrey => [0.0,0.0,0.0,0.337254901960784],
  :DarkKhaki => [0.0,0.0317460317460318,0.433862433862434,0.258823529411765],
  :DarkMagenta => [0.0,1.0,0.0,0.454901960784314],
  :DarkOliveGreen => [0.205607476635514,0.0,0.560747663551402,0.580392156862745],
  :DarkOrchid => [0.25,0.754901960784314,0.0,0.2],
  :DarkRed => [0.0,1.0,1.0,0.454901960784314],
  :DarkSalmon => [0.0,0.356223175965665,0.476394849785408,0.0862745098039216],
  :DarkSeaGreen => [0.23936170212766,0.0,0.23936170212766,0.262745098039216],
  :DarkSlateBlue => [0.482014388489209,0.56115107913669,0.0,0.454901960784314],
  :DarkSlateGray => [0.405063291139241,0.0,0.0,0.690196078431373],
  :DarkSlateGrey => [0.405063291139241,0.0,0.0,0.690196078431373],
  :DarkTurquoise => [1.0,0.0143540669856459,0.0,0.180392156862745],
  :DarkViolet => [0.298578199052133,1.0,0.0,0.172549019607843],
  :Darkorange => [0.0,0.450980392156863,1.0,0.0],
  :DeepPink => [0.0,0.92156862745098,0.423529411764706,0.0],
  :DeepSkyBlue => [1.0,0.250980392156863,0.0,0.0],
  :DimGray => [0.0,0.0,0.0,0.588235294117647],
  :DimGrey => [0.0,0.0,0.0,0.588235294117647],
  :DodgerBlue => [0.882352941176471,0.435294117647059,0.0,0.0],
  :FireBrick => [0.0,0.808988764044944,0.808988764044944,0.301960784313726],
  :FloralWhite => [0.0,0.0196078431372549,0.0588235294117647,0.0],
  :ForestGreen => [0.755395683453237,0.0,0.755395683453237,0.454901960784314],
  :Fuchsia => [0.0,1.0,0.0,0.0],
  :Gainsboro => [0.0,0.0,0.0,0.137254901960784],
  :GhostWhite => [0.0274509803921569,0.0274509803921569,0.0,0.0],
  :Gold => [0.0,0.156862745098039,1.0,0.0],
  :GoldenRod => [0.0,0.243119266055046,0.853211009174312,0.145098039215686],
  :Gray => [0.0,0.0,0.0,0.498039215686275],
  :Green => [1.0,0.0,1.0,0.498039215686275],
  :GreenYellow => [0.32156862745098,0.0,0.815686274509804,0.0],
  :Grey => [0.0,0.0,0.0,0.498039215686275],
  :HoneyDew => [0.0588235294117647,0.0,0.0588235294117647,0.0],
  :HotPink => [0.0,0.588235294117647,0.294117647058823,0.0],
  :IndianRed => [0.0,0.551219512195122,0.551219512195122,0.196078431372549],
  :Indigo => [0.423076923076923,1.0,0.0,0.490196078431373],
  :Ivory => [0.0,0.0,0.0588235294117647,0.0],
  :Khaki => [0.0,0.0416666666666666,0.416666666666667,0.0588235294117647],
  :LavenderBlush => [0.0,0.0588235294117647,0.0392156862745098,0.0],
  :Lavender => [0.0799999999999999,0.0799999999999999,0.0,0.0196078431372549],
  :LawnGreen => [0.507936507936508,0.0,1.0,0.0117647058823529],
  :LemonChiffon => [0.0,0.0196078431372549,0.196078431372549,0.0],
  :LightBlue => [0.247826086956522,0.0608695652173913,0.0,0.0980392156862745],
  :LightCoral => [0.0,0.466666666666667,0.466666666666667,0.0588235294117647],
  :LightCyan => [0.12156862745098,0.0,0.0,0.0],
  :LightGoldenRodYellow => [0.0,0.0,0.16,0.0196078431372549],
  :LightGray => [0.0,0.0,0.0,0.172549019607843],
  :LightGreen => [0.394957983193277,0.0,0.394957983193277,0.0666666666666667],
  :LightGrey => [0.0,0.0,0.0,0.172549019607843],
  :LightPink => [0.0,0.286274509803922,0.243137254901961,0.0],
  :LightSalmon => [0.0,0.372549019607843,0.52156862745098,0.0],
  :LightSeaGreen => [0.820224719101124,0.0,0.0449438202247191,0.301960784313726],
  :LightSkyBlue => [0.46,0.176,0.0,0.0196078431372549],
  :LightSlateGray => [0.222222222222222,0.111111111111111,0.0,0.4],
  :LightSlateGrey => [0.222222222222222,0.111111111111111,0.0,0.4],
  :LightSteelBlue => [0.207207207207207,0.117117117117117,0.0,0.129411764705882],
  :LightYellow => [0.0,0.0,0.12156862745098,0.0],
  :Lime => [1.0,0.0,1.0,0.0],
  :LimeGreen => [0.75609756097561,0.0,0.75609756097561,0.196078431372549],
  :Linen => [0.0,0.04,0.0799999999999999,0.0196078431372549],
  :Magenta => [0.0,1.0,0.0,0.0],
  :Maroon => [0.0,1.0,1.0,0.498039215686275],
  :MediumAquaMarine => [0.502439024390244,0.0,0.170731707317073,0.196078431372549],
  :MediumBlue => [1.0,1.0,0.0,0.196078431372549],
  :MediumOrchid => [0.118483412322275,0.597156398104265,0.0,0.172549019607843],
  :MediumPurple => [0.319444444444444,0.481481481481481,0.0,0.152941176470588],
  :MediumSeaGreen => [0.664804469273743,0.0,0.368715083798883,0.298039215686275],
  :MediumSlateBlue => [0.483193277310924,0.563025210084034,0.0,0.0666666666666667],
  :MediumSpringGreen => [1.0,0.0,0.384,0.0196078431372549],
  :MediumTurquoise => [0.655502392344498,0.0,0.0239234449760765,0.180392156862745],
  :MediumVioletRed => [0.0,0.894472361809045,0.331658291457286,0.219607843137255],
  :MidnightBlue => [0.776785714285714,0.776785714285714,0.0,0.56078431372549],
  :MintCream => [0.0392156862745098,0.0,0.0196078431372549,0.0],
  :MistyRose => [0.0,0.105882352941176,0.117647058823529,0.0],
  :Moccasin => [0.0,0.105882352941176,0.290196078431373,0.0],
  :NavajoWhite => [0.0,0.129411764705882,0.32156862745098,0.0],
  :Navy => [1.0,1.0,0.0,0.498039215686275],
  :OldLace => [0.0,0.0316205533596838,0.0909090909090909,0.00784313725490193],
  :Olive => [0.0,0.0,1.0,0.498039215686275],
  :OliveDrab => [0.246478873239437,0.0,0.753521126760563,0.443137254901961],
  :Orange => [0.0,0.352941176470588,1.0,0.0],
  :OrangeRed => [0.0,0.729411764705882,1.0,0.0],
  :Orchid => [0.0,0.486238532110092,0.0183486238532109,0.145098039215686],
  :PaleGoldenRod => [0.0,0.0252100840336135,0.285714285714286,0.0666666666666667],
  :PaleGreen => [0.394422310756972,0.0,0.394422310756972,0.015686274509804],
  :PaleTurquoise => [0.264705882352941,0.0,0.0,0.0666666666666667],
  :PaleVioletRed => [0.0,0.481481481481481,0.319444444444444,0.152941176470588],
  :PapayaWhip => [0.0,0.0627450980392157,0.164705882352941,0.0],
  :PeachPuff => [0.0,0.145098039215686,0.274509803921569,0.0],
  :Peru => [0.0,0.351219512195122,0.692682926829268,0.196078431372549],
  :Pink => [0.0,0.247058823529412,0.203921568627451,0.0],
  :Plum => [0.0,0.276018099547511,0.0,0.133333333333333],
  :PowderBlue => [0.234782608695652,0.0260869565217392,0.0,0.0980392156862745],
  :Purple => [0.0,1.0,0.0,0.498039215686275],
  :Red => [0.0,1.0,1.0,0.0],
  :RosyBrown => [0.0,0.23936170212766,0.23936170212766,0.262745098039216],
  :RoyalBlue => [0.711111111111111,0.533333333333333,0.0,0.117647058823529],
  :SaddleBrown => [0.0,0.503597122302158,0.863309352517986,0.454901960784314],
  :Salmon => [0.0,0.488,0.544,0.0196078431372549],
  :SandyBrown => [0.0,0.327868852459016,0.60655737704918,0.0431372549019607],
  :SeaGreen => [0.669064748201439,0.0,0.37410071942446,0.454901960784314],
  :SeaShell => [0.0,0.0392156862745098,0.0666666666666667,0.0],
  :Sienna => [0.0,0.4875,0.71875,0.372549019607843],
  :Silver => [0.0,0.0,0.0,0.247058823529412],
  :SkyBlue => [0.425531914893617,0.123404255319149,0.0,0.0784313725490197],
  :SlateBlue => [0.482926829268293,0.560975609756098,0.0,0.196078431372549],
  :SlateGray => [0.222222222222222,0.111111111111111,0.0,0.435294117647059],
  :SlateGrey => [0.222222222222222,0.111111111111111,0.0,0.435294117647059],
  :Snow => [0.0,0.0196078431372549,0.0196078431372549,0.0],
  :SpringGreen => [1.0,0.0,0.501960784313725,0.0],
  :SteelBlue => [0.611111111111111,0.277777777777778,0.0,0.294117647058823],
  :Tan => [0.0,0.142857142857143,0.333333333333333,0.176470588235294],
  :Teal => [1.0,0.0,0.0,0.498039215686275],
  :Thistle => [0.0,0.115740740740741,0.0,0.152941176470588],
  :Tomato => [0.0,0.611764705882353,0.72156862745098,0.0],
  :Turquoise => [0.714285714285714,0.0,0.0714285714285714,0.12156862745098],
  :Violet => [0.0,0.453781512605042,0.0,0.0666666666666667],
  :Wheat => [0.0,0.0938775510204082,0.269387755102041,0.0392156862745098],
  :White => [0.0,0.0,0.0,0.0],
  :WhiteSmoke => [0.0,0.0,0.0,0.0392156862745098],
  :Yellow => [0.0,0.0,1.0,0.0],
  :YellowGreen => [0.248780487804878,0.0,0.75609756097561,0.196078431372549]
]