Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/Geant4/tools/colors is written in an unsupported language. File is not indexed.

0001 // Copyright (C) 2010, Guy Barrand. All rights reserved.
0002 // See the file tools.license for terms.
0003 
0004 #ifndef tools_colors
0005 #define tools_colors
0006 
0007 // our forever 65 named colors taken long time ago from X11.
0008 
0009 namespace tools {
0010 
0011 #define TOOLS_COLORS_SET(a__name,a__r,a__g,a__b) \
0012   template <class COLOR>\
0013   inline void set_color_##a__name(COLOR& a_color) {a_color.set_value(a__r,a__g,a__b,1);}
0014 
0015 //0-9
0016 TOOLS_COLORS_SET(aquamarine,0.496101F,0.996109F,0.828138F)
0017 TOOLS_COLORS_SET(mediumaquamarine,0.398444F,0.800793F,0.664073F)
0018 TOOLS_COLORS_SET(black,0,0,0)
0019 TOOLS_COLORS_SET(blue,0,0,1)
0020 TOOLS_COLORS_SET(cadetblue,0.371099F,0.617197F,0.62501F)
0021 TOOLS_COLORS_SET(cornflowerblue,0.390631F,0.58204F,0.925795F)
0022 TOOLS_COLORS_SET(darkslateblue,0.281254F,0.238285F,0.542977F)
0023 TOOLS_COLORS_SET(lightblue,0.675792F,0.843763F,0.898451F)
0024 TOOLS_COLORS_SET(lightsteelblue,0.68751F,0.765637F,0.867201F)
0025 TOOLS_COLORS_SET(mediumblue,0,0,0.800793F)
0026 
0027 //10-19
0028 TOOLS_COLORS_SET(mediumslateblue,0.480476F,0.406256F,0.929702F)
0029 TOOLS_COLORS_SET(midnightblue,0.0976577F,0.0976577F,0.437507F)
0030 TOOLS_COLORS_SET(navyblue,0,0,0.500008F)
0031 TOOLS_COLORS_SET(navy,0,0,0.500008F)
0032 TOOLS_COLORS_SET(skyblue,0.527352F,0.8047F,0.917983F)
0033 TOOLS_COLORS_SET(slateblue,0.414069F,0.351568F,0.800793F)
0034 TOOLS_COLORS_SET(steelblue,0.273442F,0.50782F,0.703136F)
0035 TOOLS_COLORS_SET(coral,0.996109F,0.496101F,0.312505F)
0036 TOOLS_COLORS_SET(cyan,0,1,1)
0037 TOOLS_COLORS_SET(firebrick,0.695323F,0.132815F,0.132815F)
0038 
0039 //20-29
0040 TOOLS_COLORS_SET(brown,0.644541F,0.164065F,0.164065F)
0041 TOOLS_COLORS_SET(gold,0.996109F,0.839857F,0)
0042 TOOLS_COLORS_SET(goldenrod,0.851575F,0.644541F,0.125002F)
0043 TOOLS_COLORS_SET(green,0,1,0)
0044 TOOLS_COLORS_SET(darkgreen,0,0.390631F,0)
0045 TOOLS_COLORS_SET(darkolivegreen,0.332036F,0.417975F,0.183597F)
0046 TOOLS_COLORS_SET(forestgreen,0.132815F,0.542977F,0.132815F)
0047 TOOLS_COLORS_SET(limegreen,0.195315F,0.800793F,0.195315F)
0048 TOOLS_COLORS_SET(mediumseagreen,0.234379F,0.699229F,0.441413F)
0049 TOOLS_COLORS_SET(mediumspringgreen,0,0.976577F,0.601572F)
0050 
0051 //30-39
0052 TOOLS_COLORS_SET(palegreen,0.593759F,0.980484F,0.593759F)
0053 TOOLS_COLORS_SET(seagreen,0.17969F,0.542977F,0.339849F)
0054 TOOLS_COLORS_SET(springgreen,0,0.996109F,0.496101F)
0055 TOOLS_COLORS_SET(yellowgreen,0.601572F,0.800793F,0.195315F)
0056 TOOLS_COLORS_SET(darkslategrey,0.183597F,0.308598F,0.308598F)
0057 TOOLS_COLORS_SET(dimgrey,0.410163F,0.410163F,0.410163F)
0058 TOOLS_COLORS_SET(lightgrey,0.824231F,0.824231F,0.824231F)
0059 TOOLS_COLORS_SET(grey,0.750011F,0.750011F,0.750011F)
0060 TOOLS_COLORS_SET(khaki,0.937514F,0.898451F,0.546883F)
0061 TOOLS_COLORS_SET(magenta,1,0,1)
0062 
0063 //40-49
0064 TOOLS_COLORS_SET(maroon,0.68751F,0.187503F,0.375006F)
0065 TOOLS_COLORS_SET(orange,0.996109F,0.644541F,0)
0066 TOOLS_COLORS_SET(orchid,0.851575F,0.437507F,0.83595F)
0067 TOOLS_COLORS_SET(darkorchid,0.597665F,0.195315F,0.796887F)
0068 TOOLS_COLORS_SET(mediumorchid,0.726574F,0.332036F,0.824231F)
0069 TOOLS_COLORS_SET(pink,0.996109F,0.750011F,0.792981F)
0070 TOOLS_COLORS_SET(plum,0.863294F,0.62501F,0.863294F)
0071 TOOLS_COLORS_SET(red,1,0,0)
0072 TOOLS_COLORS_SET(indianred,0.800793F,0.35938F,0.35938F)
0073 TOOLS_COLORS_SET(mediumvioletred,0.777356F,0.0820325F,0.519539F)
0074 
0075 //50-59
0076 TOOLS_COLORS_SET(orangered,0.996109F,0.269535F,0)
0077 TOOLS_COLORS_SET(violetred,0.812512F,0.125002F,0.562509F)
0078 TOOLS_COLORS_SET(salmon,0.976577F,0.500008F,0.445319F)
0079 TOOLS_COLORS_SET(sienna,0.62501F,0.320317F,0.175784F)
0080 TOOLS_COLORS_SET(tan,0.820325F,0.703136F,0.546883F)
0081 TOOLS_COLORS_SET(thistle,0.843763F,0.746105F,0.843763F)
0082 TOOLS_COLORS_SET(turquoise,0.250004F,0.875013F,0.812512F)
0083 TOOLS_COLORS_SET(darkturquoise,0,0.8047F,0.816419F)
0084 TOOLS_COLORS_SET(mediumturquoise,0.281254F,0.816419F,0.796887F)
0085 TOOLS_COLORS_SET(violet,0.929702F,0.50782F,0.929702F)
0086 
0087 //60-64
0088 TOOLS_COLORS_SET(blueviolet,0.539071F,0.167971F,0.882826F)
0089 TOOLS_COLORS_SET(wheat,0.957046F,0.867201F,0.699229F)
0090 TOOLS_COLORS_SET(white,1,1,1)
0091 TOOLS_COLORS_SET(yellow,1,1,0)
0092 TOOLS_COLORS_SET(greenyellow,0.675792F,0.996109F,0.18359F)
0093 
0094 #undef TOOLS_COLORS_SET
0095 
0096 #if defined(TOOLS_MEM) && !defined(TOOLS_MEM_ATEXIT)
0097 #define TOOLS_COLORS_STAT(a__name,a__r,a__g,a__b) \
0098   template <class COLOR>\
0099   inline const COLOR& get_color_##a__name() {static const COLOR s_v(a__r,a__g,a__b,1,false);return s_v;}
0100 #else
0101 #define TOOLS_COLORS_STAT(a__name,a__r,a__g,a__b) \
0102   template <class COLOR>\
0103   inline const COLOR& get_color_##a__name() {static const COLOR s_v(a__r,a__g,a__b,1);return s_v;}
0104 #endif
0105 
0106 //0-9
0107 TOOLS_COLORS_STAT(aquamarine,0.496101F,0.996109F,0.828138F)
0108 TOOLS_COLORS_STAT(mediumaquamarine,0.398444F,0.800793F,0.664073F)
0109 TOOLS_COLORS_STAT(black,0,0,0)
0110 TOOLS_COLORS_STAT(blue,0,0,1)
0111 TOOLS_COLORS_STAT(cadetblue,0.371099F,0.617197F,0.62501F)
0112 TOOLS_COLORS_STAT(cornflowerblue,0.390631F,0.58204F,0.925795F)
0113 TOOLS_COLORS_STAT(darkslateblue,0.281254F,0.238285F,0.542977F)
0114 TOOLS_COLORS_STAT(lightblue,0.675792F,0.843763F,0.898451F)
0115 TOOLS_COLORS_STAT(lightsteelblue,0.68751F,0.765637F,0.867201F)
0116 TOOLS_COLORS_STAT(mediumblue,0,0,0.800793F)
0117 
0118 //10-19
0119 TOOLS_COLORS_STAT(mediumslateblue,0.480476F,0.406256F,0.929702F)
0120 TOOLS_COLORS_STAT(midnightblue,0.0976577F,0.0976577F,0.437507F)
0121 TOOLS_COLORS_STAT(navyblue,0,0,0.500008F)
0122 TOOLS_COLORS_STAT(navy,0,0,0.500008F)
0123 TOOLS_COLORS_STAT(skyblue,0.527352F,0.8047F,0.917983F)
0124 TOOLS_COLORS_STAT(slateblue,0.414069F,0.351568F,0.800793F)
0125 TOOLS_COLORS_STAT(steelblue,0.273442F,0.50782F,0.703136F)
0126 TOOLS_COLORS_STAT(coral,0.996109F,0.496101F,0.312505F)
0127 TOOLS_COLORS_STAT(cyan,0,1,1)
0128 TOOLS_COLORS_STAT(firebrick,0.695323F,0.132815F,0.132815F)
0129 
0130 //20-29
0131 TOOLS_COLORS_STAT(brown,0.644541F,0.164065F,0.164065F)
0132 TOOLS_COLORS_STAT(gold,0.996109F,0.839857F,0)
0133 TOOLS_COLORS_STAT(goldenrod,0.851575F,0.644541F,0.125002F)
0134 TOOLS_COLORS_STAT(green,0,1,0)
0135 TOOLS_COLORS_STAT(darkgreen,0,0.390631F,0)
0136 TOOLS_COLORS_STAT(darkolivegreen,0.332036F,0.417975F,0.183597F)
0137 TOOLS_COLORS_STAT(forestgreen,0.132815F,0.542977F,0.132815F)
0138 TOOLS_COLORS_STAT(limegreen,0.195315F,0.800793F,0.195315F)
0139 TOOLS_COLORS_STAT(mediumseagreen,0.234379F,0.699229F,0.441413F)
0140 TOOLS_COLORS_STAT(mediumspringgreen,0,0.976577F,0.601572F)
0141 
0142 //30-39
0143 TOOLS_COLORS_STAT(palegreen,0.593759F,0.980484F,0.593759F)
0144 TOOLS_COLORS_STAT(seagreen,0.17969F,0.542977F,0.339849F)
0145 TOOLS_COLORS_STAT(springgreen,0,0.996109F,0.496101F)
0146 TOOLS_COLORS_STAT(yellowgreen,0.601572F,0.800793F,0.195315F)
0147 TOOLS_COLORS_STAT(darkslategrey,0.183597F,0.308598F,0.308598F)
0148 TOOLS_COLORS_STAT(dimgrey,0.410163F,0.410163F,0.410163F)
0149 TOOLS_COLORS_STAT(lightgrey,0.824231F,0.824231F,0.824231F)
0150 TOOLS_COLORS_STAT(grey,0.750011F,0.750011F,0.750011F)
0151 TOOLS_COLORS_STAT(khaki,0.937514F,0.898451F,0.546883F)
0152 TOOLS_COLORS_STAT(magenta,1,0,1)
0153 
0154 //40-49
0155 TOOLS_COLORS_STAT(maroon,0.68751F,0.187503F,0.375006F)
0156 TOOLS_COLORS_STAT(orange,0.996109F,0.644541F,0)
0157 TOOLS_COLORS_STAT(orchid,0.851575F,0.437507F,0.83595F)
0158 TOOLS_COLORS_STAT(darkorchid,0.597665F,0.195315F,0.796887F)
0159 TOOLS_COLORS_STAT(mediumorchid,0.726574F,0.332036F,0.824231F)
0160 TOOLS_COLORS_STAT(pink,0.996109F,0.750011F,0.792981F)
0161 TOOLS_COLORS_STAT(plum,0.863294F,0.62501F,0.863294F)
0162 TOOLS_COLORS_STAT(red,1,0,0)
0163 TOOLS_COLORS_STAT(indianred,0.800793F,0.35938F,0.35938F)
0164 TOOLS_COLORS_STAT(mediumvioletred,0.777356F,0.0820325F,0.519539F)
0165 
0166 //50-59
0167 TOOLS_COLORS_STAT(orangered,0.996109F,0.269535F,0)
0168 TOOLS_COLORS_STAT(violetred,0.812512F,0.125002F,0.562509F)
0169 TOOLS_COLORS_STAT(salmon,0.976577F,0.500008F,0.445319F)
0170 TOOLS_COLORS_STAT(sienna,0.62501F,0.320317F,0.175784F)
0171 TOOLS_COLORS_STAT(tan,0.820325F,0.703136F,0.546883F)
0172 TOOLS_COLORS_STAT(thistle,0.843763F,0.746105F,0.843763F)
0173 TOOLS_COLORS_STAT(turquoise,0.250004F,0.875013F,0.812512F)
0174 TOOLS_COLORS_STAT(darkturquoise,0,0.8047F,0.816419F)
0175 TOOLS_COLORS_STAT(mediumturquoise,0.281254F,0.816419F,0.796887F)
0176 TOOLS_COLORS_STAT(violet,0.929702F,0.50782F,0.929702F)
0177 
0178 //60-64
0179 TOOLS_COLORS_STAT(blueviolet,0.539071F,0.167971F,0.882826F)
0180 TOOLS_COLORS_STAT(wheat,0.957046F,0.867201F,0.699229F)
0181 TOOLS_COLORS_STAT(white,1,1,1)
0182 TOOLS_COLORS_STAT(yellow,1,1,0)
0183 TOOLS_COLORS_STAT(greenyellow,0.675792F,0.996109F,0.18359F)
0184 
0185 ////////////////////////////////////////////////////////
0186 /// CERN-ROOT colors : /////////////////////////////////
0187 ////////////////////////////////////////////////////////
0188 
0189 TOOLS_COLORS_STAT(ROOT_Color8,  0.35F,0.83F,0.33F)
0190 TOOLS_COLORS_STAT(ROOT_Color9,  0.35F,0.33F,0.85F)
0191 TOOLS_COLORS_STAT(ROOT_grey12,  0.3F,0.3F,0.3F)
0192 TOOLS_COLORS_STAT(ROOT_grey13,  0.4F,0.4F,0.4F)
0193 TOOLS_COLORS_STAT(ROOT_grey14,  0.5F,0.5F,0.5F)
0194 TOOLS_COLORS_STAT(ROOT_grey15,  0.6F,0.6F,0.6F)
0195 TOOLS_COLORS_STAT(ROOT_grey16,  0.7F,0.7F,0.7F)
0196 TOOLS_COLORS_STAT(ROOT_grey17,  0.8F,0.8F,0.8F)
0197 TOOLS_COLORS_STAT(ROOT_grey18,  0.9F,0.9F,0.9F)
0198 TOOLS_COLORS_STAT(ROOT_grey19 , 0.95F,0.95F,0.95F)
0199 TOOLS_COLORS_STAT(ROOT_Color50, 0.83F,0.35F,0.33F)
0200 
0201 #undef TOOLS_COLORS_STAT
0202 
0203 }
0204 
0205 #endif