Mercurial > repos > immport-devteam > cs_overview
comparison js/color_palette.js @ 2:a64ece32a01a draft default tip
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/cs_overview commit a46097db0b6056e1125237393eb6974cfd51eb41"
author | azomics |
---|---|
date | Tue, 28 Jul 2020 08:32:36 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1:bca68066a957 | 2:a64ece32a01a |
---|---|
1 // Copyright (c) 2016 Northrop Grumman. | |
2 // All rights reserved. | |
3 | |
4 /* Palettes for graphics. | |
5 * 0 -> Liz's palette (original ImmPort color scheme for graphics) | |
6 * 1 -> Cris's palette (diverging) | |
7 * 2 -> Christmas (diverging) | |
8 * 3 -> not Christmas (sequential color blind friendly) | |
9 * 4 -> Rainbow (sequential) | |
10 * arrays are color HEX, color RGB (for transparency effect), contrasting color, darker shade for borders | |
11 */ | |
12 var color_palette = [[ | |
13 ['#000000','rgba(0,0,0,','rgba(52,17,81,1)','#111111'], | |
14 ['#FF0000','rgba(255,0,0,','rgba(52,17,81,1)','#D21111'], | |
15 ['#FFFF00','rgba(255,255,0,','rgba(52,17,81,1)','#FFC900'], | |
16 ['#008000','rgba(0,128,0,','rgba(52,17,81,1)','#016D01'], | |
17 ['#0000FF','rgba(0,0,255,','rgba(255,0,0,1)','#2121A0'], | |
18 ['#FFA500','rgba(255,165,0,','rgba(52,17,81,1)','#DE991B'], | |
19 ['#8A2BE2','rgba(138,43,226,','rgba(52,17,81,1)','#6A0EBF'], | |
20 ['#808000','rgba(128,128,0,','rgba(52,17,81,1)','#66660A'], | |
21 ['#00FFFF','rgba(0,255,255,','rgba(52,17,81,1)','#1DCBCB'], | |
22 ['#FF00FF','rgba(255,0,255,','rgba(52,17,81,1)','#A009A0'], | |
23 ['#00FF00','rgba(0,255,0,','rgba(52,17,81,1)','#20AB20'], | |
24 ['#000080','rgba(0,0,128,','rgba(255,0,0,1)','#13135B'], | |
25 ['#F08080','rgba(240,128,128,','rgba(52,17,81,1)','#922626'], | |
26 ['#800080','rgba(128,0,128,','rgba(255,0,0,1)','#580B58'], | |
27 ['#F0E68C','rgba(240,230,140,','rgba(52,17,81,1)','#F0C08C'], | |
28 ['#8FBC8F','rgba(143,188,143,','rgba(52,17,81,1)','#668166'], | |
29 ['#2F4F4F','rgba(47,79,79,','rgba(52,17,81,1)','#0E3636'], | |
30 ['#008080','rgba(0,128,128,','rgba(52,17,81,1)','#095454'], | |
31 ['#9932CC','rgba(153,50,204,','rgba(52,17,81,1)','#78289F'], | |
32 ['#FF7F50','rgba(255,127,80,','rgba(52,17,81,1)','#B0431A'], | |
33 ['#FFD700','rgba(255,215,0,','rgba(52,17,81,1)','#FFB900'], | |
34 ['#008B8B','rgba(0,139,139,','rgba(52,17,81,1)','#097171'], | |
35 ['#800000','rgba(128,0,0,','rgba(255,0,0,1)','#500303'], | |
36 ['#5F9EA0','rgba(95,158,160,','rgba(52,17,81,1)','#366668'], | |
37 ['#FFC0CB','rgba(255,192,203,','rgba(52,17,81,1)','#FC869B'], | |
38 ['#545454','rgba(84,84,84,','rgba(255,0,0,1)','#342C2C'], | |
39 ['#7FFFD4','rgba(127,255,212,','rgba(255,0,0,1)','#8CCAB5'], | |
40 ['#ADD8E6','rgba(173,216,230,','rgba(52,17,81,1)','#77C6DF'], | |
41 ['#DB7093','rgba(219,112,147,','rgba(52,17,81,1)','#B24B6D'], | |
42 ['#CD853F','rgba(205,133,63,','rgba(52,17,81,1)','#BA6D22'], | |
43 ['#4169E1','rgba(65,105,225,','rgba(52,17,81,1)','#1840B8'], | |
44 ['#708090','rgba(112,128,144,','rgba(52,17,81,1)','#465A6D'], | |
45 ['#4682B4','rgba(70,130,180,','rgba(52,17,81,1)','#1F5785'], | |
46 ['#D8BFD8','rgba(216,191,216,','rgba(52,17,81,1)','#B679B6'], | |
47 ['#F5DEB3','rgba(245,222,179,','rgba(52,17,81,1)','#E9AB3F'], | |
48 ['#9ACD32','rgba(154,205,50,','rgba(52,17,81,1)','#6E971B'], | |
49 ['#BDB76B','rgba(189,183,107,','rgba(52,17,81,1)','#938E49'], | |
50 ['#8B008B','rgba(139,0,139,','rgba(255,0,0,1)','#590A59'], | |
51 ['#556B2F','rgba(85,107,47,','rgba(52,17,81,1)','#3A4D19'], | |
52 ['#00CED1','rgba(0,206,209,','rgba(52,17,81,1)','#1BA0A2'], | |
53 ['#FF1493','rgba(255,20,147,','rgba(52,17,81,1)','#A40F5F'] | |
54 ],[ | |
55 //cris | |
56 ['#000000','rgba(0,0,0,','rgba(52,17,81,1)','#111111'], | |
57 ['#5B1A48','rgba(91,26,72,','rgba(255,0,0,1)','#922B74'], | |
58 ['#1ED992','rgba(30,217,146,','rgba(52,17,81,1)','#108A5B'], | |
59 ['#FFE4FF','rgba(255,228,255,','rgba(52,17,81,1)','#FF9AFF'], | |
60 ['#3B2000','rgba(59,32,0,','rgba(255,0,0,1)','#8C4D02'], | |
61 ['#BDF765','rgba(189,247,101,','rgba(52,17,81,1)','#83b438'], | |
62 ['#C6DCFD','rgba(198,220,253,','rgba(52,17,81,1)','#70A9FE'], | |
63 ['#542788','rgba(84,39,136,','rgba(255,0,0,1)','#8055B2'], | |
64 ['#FB8072','rgba(251,128,114,','rgba(52,17,81,1)','#D55446'], | |
65 ['#F2E0B8','rgba(242,224,184,','rgba(52,17,81,1)','#F9C146'], | |
66 ['#0A684C','rgba(10,104,76,','rgba(52,17,81,1)','#27B88D'], | |
67 ['#FD8ADC','rgba(253,138,220,','rgba(52,17,81,1)','#CB3AA2'], | |
68 ['#CDFAFF','rgba(205,250,255,','rgba(52,17,81,1)','#66EDFC'], | |
69 ['#0C1657','rgba(12,22,87,','rgba(255,0,0,1)','#3243B6'], | |
70 ['#FFDE69','rgba(255,222,105,','rgba(52,17,81,1)','#CFAD34'], | |
71 ['#BEBADA','rgba(190,186,218,','rgba(52,17,81,1)','#6A5EBA'], | |
72 ['#8D182B','rgba(141,24,43,','rgba(52,17,81,1)','#5E0412'], | |
73 ['#FFFF00','rgba(255,255,0,','rgba(52,17,81,1)','#FFC900'], | |
74 ['#788D84','rgba(120,141,132,','rgba(52,17,81,1)','#496F5F'], | |
75 ['#A53DD5','rgba(165,61,213,','rgba(52,17,81,1)','#66178A'], | |
76 ['#5DF33F','rgba(93,243,63,','rgba(52,17,81,1)','#47A035'], | |
77 ['#C8C8C8','rgba(200,200,200,','rgba(52,17,81,1)','#878484'], | |
78 ['#9A1B7D','rgba(154,27,125,','rgba(52,17,81,1)','#D54BB5'], | |
79 ['#1068BD','rgba(16,104,189,','rgba(52,17,81,1)','#0C3156'], | |
80 ['#C7EAE5','rgba(199,234,229,','rgba(52,17,81,1)','#68B8AC'], | |
81 ['#8C510A','rgba(140,81,10,','rgba(52,17,81,1)','#653B07'], | |
82 ['#FFBD01','rgba(255,189,1,','rgba(52,17,81,1)','#CE9800'], | |
83 ['#DFFCC5','rgba(223,252,197,','rgba(52,17,81,1)','#99C670'], | |
84 ['#41C8C4','rgba(65,200,196,','rgba(52,17,81,1)','#24918E'], | |
85 ['#9685F5','rgba(150,133,245,','rgba(52,17,81,1)','#6257A1'], | |
86 ['#D8B365','rgba(216,179,101,','rgba(52,17,81,1)','#9F7E39'], | |
87 ['#00FFFF','rgba(0,255,255,','rgba(52,17,81,1)','#1DCBCB'], | |
88 ['#F1F1A2','rgba(241,241,162,','rgba(52,17,81,1)','#CECE54'], | |
89 ['#AFBFFD','rgba(175,191,253,','rgba(52,17,81,1)','#5E72BF'], | |
90 ['#FF0019','rgba(255,0,25,','rgba(52,17,81,1)','#970110'], | |
91 ['#8A598A','rgba(138,89,138,','rgba(52,17,81,1)','#602E60'], | |
92 ['#75B030','rgba(117,176,48,','rgba(52,17,81,1)','#3D690A'], | |
93 ['#0A5A83','rgba(10,90,131,','rgba(52,17,81,1)','#0F3447'], | |
94 ['#937B6A','rgba(147,123,106,','rgba(52,17,81,1)','#473121'], | |
95 ['#1540EC','rgba(21,64,236,','rgba(255,0,0,1)','#0C2589'], | |
96 ['#010101','rgba(1,1,1,','rgba(255,0,0,1)','#4A4242'] | |
97 ],[ | |
98 //christmas | |
99 ['#000000','rgba(0,0,0,','rgba(52,17,81,1)','#111111'], | |
100 ['#BD1A00','rgba(189,26,0,','rgba(52,17,81,1)','#7B1E0F'], | |
101 ['#FF8F68','rgba(255,143,104,','rgba(52,17,81,1)','#BC4F28'], | |
102 ['#FFFFBF','rgba(255,255,191,','rgba(52,17,81,1)','#EAEA72'], | |
103 ['#1A9850','rgba(26,152,80,','rgba(52,17,81,1)','#0F582F'], | |
104 ['#BDF765','rgba(189,247,101,','rgba(52,17,81,1)','#73B70C'], | |
105 ['#542788','rgba(84,39,136,','rgba(255,0,0,1)','#230941'], | |
106 ['#998EC3','rgba(153,142,195,','rgba(52,17,81,1)','#483884'], | |
107 ['#D8DAEB','rgba(216,218,235,','rgba(52,17,81,1)','#7581E9'], | |
108 ['#5A95B8','rgba(90,149,184,','rgba(52,17,81,1)','#154C6C'], | |
109 ['#01555E','rgba(1,85,94,','rgba(255,0,0,1)','#04272A'], | |
110 ['#FEE0B6','rgba(254,224,182,','rgba(52,17,81,1)','#C8954F'], | |
111 ['#F1A340','rgba(241,163,64,','rgba(52,17,81,1)','#BD7519'], | |
112 ['#B35806','rgba(179,88,6,','rgba(52,17,81,1)','#683303'], | |
113 ['#8D182B','rgba(141,24,43,','rgba(52,17,81,1)','#5B0B18'], | |
114 ['#EF8AB4','rgba(239,138,180,','rgba(52,17,81,1)','#E7337E'], | |
115 ['#C51B7D','rgba(197,27,125,','rgba(52,17,81,1)','#690840'], | |
116 ['#3B2000','rgba(59,32,0,','rgba(255,0,0,1)','#120A00'], | |
117 ['#8C510A','rgba(140,81,10,','rgba(52,17,81,1)','#442907'], | |
118 ['#D8B365','rgba(216,179,101,','rgba(52,17,81,1)','#816426'], | |
119 ['#C7EAE5','rgba(199,234,229,','rgba(52,17,81,1)','#54AB9F'], | |
120 ['#41B6C4','rgba(65,182,196,','rgba(52,17,81,1)','#167D89'], | |
121 ['#225EA8','rgba(34,94,168,','rgba(52,17,81,1)','#103B6F'], | |
122 ['#0C1657','rgba(12,22,87,','rgba(255,0,0,1)','#030933'], | |
123 ['#00FF00','rgba(0,255,0,','rgba(52,17,81,1)','#20AB20'], | |
124 ['#FF0000','rgba(255,0,0,','rgba(52,17,81,1)','#D21111'], | |
125 ['#AFAFAF','rgba(175,175,175,','rgba(52,17,81,1)','#818D8D'], | |
126 ['#FFFF00','rgba(255,255,0,','rgba(52,17,81,1)','#FFC900'], | |
127 ['#FF00DB','rgba(255,0,219,','rgba(52,17,81,1)','#A70C91'], | |
128 ['#0000FF','rgba(0,0,255,','rgba(255,0,0,1)','#2121A0'], | |
129 ['#00FFFF','rgba(0,255,255,','rgba(52,17,81,1)','#1DCBCB'], | |
130 ['#95E199','rgba(149,225,153,','rgba(52,17,81,1)','#369F3B'], | |
131 ['#A53DD5','rgba(165,61,213,','rgba(52,17,81,1)','#590480'], | |
132 ['#1A4A26','rgba(26,74,38,','rgba(255,0,0,1)','#08240F'], | |
133 ['#FCCDE5','rgba(252,205,229,','rgba(52,17,81,1)','#D082AA'], | |
134 ['#FDB462','rgba(255,222,105,','rgba(52,17,81,1)','#D77C15'], | |
135 ['#FFDE69','rgba(253,180,98,','rgba(52,17,81,1)','#E6B505'], | |
136 ['#80B1D3','rgba(128,177,211,','rgba(52,17,81,1)','#306E99'], | |
137 ['#737B1B','rgba(115,123,27,','rgba(52,17,81,1)','#424705'], | |
138 ['#BEBADA','rgba(190,186,218,','rgba(52,17,81,1)','#514984'], | |
139 ['#8DD3C7','rgba(141,211,199,','rgba(52,17,81,1)','#248D7B'] | |
140 ],[ | |
141 // Not christmas | |
142 ['#000000','rgba(0,0,0,','rgba(52,17,81,1)','#111111'], | |
143 ['#781C81','rgba(120,28,129,','rgba(255,0,0,1)','#49074F'], | |
144 ['#61187E','rgba(97,24,126,','rgba(255,0,0,1)','#3B0251'], | |
145 ['#531B7F','rgba(83,27,127,','rgba(255,0,0,1)','#320356'], | |
146 ['#4A2384','rgba(74,35,132,','rgba(255,0,0,1)','#260656'], | |
147 ['#442E8A','rgba(68,46,138,','rgba(255,0,0,1)','#1E0A5C'], | |
148 ['#413B93','rgba(65,59,147,','rgba(255,0,0,1)','#18125E'], | |
149 ['#3F499D','rgba(63,73,157,','rgba(255,0,0,1)','#17206F'], | |
150 ['#3F58A8','rgba(63,88,168,','rgba(255,0,0,1)','#11276C'], | |
151 ['#4066B2','rgba(64,102,178,','rgba(255,0,0,1)','#16377B'], | |
152 ['#4273BB','rgba(66,115,187,','rgba(255,0,0,1)','#13438A'], | |
153 ['#447FC0','rgba(68,127,192,','rgba(52,17,81,1)','#164F8E'], | |
154 ['#488AC2','rgba(72,138,194,','rgba(52,17,81,1)','#195A92'], | |
155 ['#4C94BF','rgba(76,148,191,','rgba(52,17,81,1)','#1C6490'], | |
156 ['#519CB8','rgba(81,156,184,','rgba(52,17,81,1)','#1E6D8B'], | |
157 ['#57A3AE','rgba(87,163,174,','rgba(52,17,81,1)','#287985'], | |
158 ['#5EA9A2','rgba(94,169,162,','rgba(52,17,81,1)','#277A72'], | |
159 ['#65AE95','rgba(101,174,149,','rgba(52,17,81,1)','#28785D'], | |
160 ['#6DB388','rgba(109,179,136,','rgba(52,17,81,1)','#348252'], | |
161 ['#76B67D','rgba(118,182,125,','rgba(52,17,81,1)','#388340'], | |
162 ['#7FB972','rgba(127,185,114,','rgba(52,17,81,1)','#448635'], | |
163 ['#88BB69','rgba(136,187,105,','rgba(52,17,81,1)','#518730'], | |
164 ['#92BD60','rgba(146,189,96,','rgba(52,17,81,1)','#62902D'], | |
165 ['#9CBE59','rgba(156,190,89,','rgba(52,17,81,1)','#6D9028'], | |
166 ['#A7BE53','rgba(167,190,83,','rgba(52,17,81,1)','#70871D'], | |
167 ['#B1BE49','rgba(177,190,78,','rgba(52,17,81,1)','#7C8919'], | |
168 ['#BABC49','rgba(186,188,73,','rgba(52,17,81,1)','#87891B'], | |
169 ['#C3BA45','rgba(195,186,69,','rgba(52,17,81,1)','#928917'], | |
170 ['#CCB742','rgba(204,183,66,','rgba(52,17,81,1)','#AC9516'], | |
171 ['#D3B33F','rgba(211,179,63,','rgba(52,17,81,1)','#A78713'], | |
172 ['#DAAD3C','rgba(218,173,60,','rgba(52,17,81,1)','#AB7E0D'], | |
173 ['#DFA539','rgba(223,165,57,','rgba(52,17,81,1)','#B17609'], | |
174 ['#E39C37','rgba(227,156,55,','rgba(52,17,81,1)','#BB730D'], | |
175 ['#E59134','rgba(229,145,52,','rgba(52,17,81,1)','#B16006'], | |
176 ['#E78432','rgba(231,132,50,','rgba(52,17,81,1)','#B45404'], | |
177 ['#E7752F','rgba(231,117,47,','rgba(52,17,81,1)','#763703'], | |
178 ['#E6652D','rgba(230,101,45,','rgba(52,17,81,1)','#AD3906'], | |
179 ['#E4542A','rgba(228,84,42,','rgba(52,17,81,1)','#AE2A04'], | |
180 ['#E14326','rgba(225,67,38,','rgba(52,17,81,1)','#AD1E04'], | |
181 ['#DD3123','rgba(221,49,35,','rgba(52,17,81,1)','#A11105'], | |
182 ['#D92120','rgba(217,33,32,','rgba(52,17,81,1)','#8A0201'] | |
183 ],[ | |
184 // Rainbow | |
185 ['#000000','rgba(0,0,0,','rgba(52,17,81,1)','#111111'], | |
186 ['#FF0000','rgba(255,0,0,','rgba(52,17,81,1)','#C30707'], | |
187 ['#FF2600','rgba(255,38,0,','rgba(52,17,81,1)','#BA250B'], | |
188 ['#FF4D00','rgba(255,77,0,','rgba(52,17,81,1)','#BD3A02'], | |
189 ['#FF7300','rgba(255,115,0,','rgba(52,17,81,1)','#C15B06'], | |
190 ['#FF9900','rgba(255,153,0,','rgba(52,17,81,1)','#BF7504'], | |
191 ['#FFBF00','rgba(255,191,0,','rgba(52,17,81,1)','#C49405'], | |
192 ['#FFE500','rgba(255,229,0,','rgba(52,17,81,1)','#BEAB01'], | |
193 ['#F2FF00','rgba(242,255,0,','rgba(52,17,81,1)','#B3BD03'], | |
194 ['#CCFF00','rgba(204,255,0,','rgba(52,17,81,1)','#93B607'], | |
195 ['#A6FF00','rgba(166,255,0,','rgba(52,17,81,1)','#7BBB05'], | |
196 ['#80FF00','rgba(128,255,0,','rgba(52,17,81,1)','#59AC05'], | |
197 ['#59FF00','rgba(89,255,0,','rgba(52,17,81,1)','#3DAD01'], | |
198 ['#33FF00','rgba(51,255,0,','rgba(52,17,81,1)','#24B001'], | |
199 ['#0DFF00','rgba(13,255,0,','rgba(52,17,81,1)','#0CAA03'], | |
200 ['#00FF1A','rgba(0,255,26,','rgba(52,17,81,1)','#03AC14'], | |
201 ['#00FF40','rgba(0,255,64,','rgba(52,17,81,1)','#02AB2C'], | |
202 ['#00FF66','rgba(0,255,102,','rgba(52,17,81,1)','#01AD46'], | |
203 ['#00FF8C','rgba(0,255,140,','rgba(52,17,81,1)','#06B466'], | |
204 ['#00FFB3','rgba(0,255,179,','rgba(52,17,81,1)','#01AB79'], | |
205 ['#00FFD9','rgba(0,255,217,','rgba(52,17,81,1)','#02B399'], | |
206 ['#00FFFF','rgba(0,255,255,','rgba(52,17,81,1)','#04AEAE'], | |
207 ['#00D9FF','rgba(0,217,255,','rgba(52,17,81,1)','#0496B0'], | |
208 ['#00B2FF','rgba(0,178,255,','rgba(52,17,81,1)','#0272A3'], | |
209 ['#008CFF','rgba(0,140,255,','rgba(255,0,0,1)','#00569D'], | |
210 ['#0068FF','rgba(0,102,255,','rgba(255,0,0,1)','#044AAE'], | |
211 ['#0040FF','rgba(0,64,255,','rgba(255,0,0,1)','#032894'], | |
212 ['#0019FF','rgba(0,25,255,','rgba(255,0,0,1)','#01109C'], | |
213 ['#0D00FF','rgba(13,0,255,','rgba(255,0,0,1)','#0B03A7'], | |
214 ['#3300FF','rgba(51,0,255,','rgba(255,0,0,1)','#2403A7'], | |
215 ['#5900FF','rgba(89,0,255,','rgba(255,0,0,1)','#3E04AA'], | |
216 ['#8000FF','rgba(128,0,255,','rgba(255,0,0,1)','#5302A4'], | |
217 ['#A600FF','rgba(166,0,255,','rgba(255,0,0,1)','#6F03A9'], | |
218 ['#CC00FF','rgba(204,0,255,','rgba(255,0,0,1)','#8A04AC'], | |
219 ['#F200FF','rgba(242,0,255,','rgba(52,17,81,1)','#9D03A5'], | |
220 ['#FF00E5','rgba(255,0,229,','rgba(52,17,81,1)','#B607A4'], | |
221 ['#FF00BF','rgba(255,0,191,','rgba(52,17,81,1)','#B40588'], | |
222 ['#FF0099','rgba(255,0,153,','rgba(52,17,81,1)','#B4016D'], | |
223 ['#FF0073','rgba(255,0,115,','rgba(52,17,81,1)','#A9024D'], | |
224 ['#FF004C','rgba(255,0,76,','rgba(52,17,81,1)','#A90335'], | |
225 ['#FF0026','rgba(255,0,38,','rgba(52,17,81,1)','#A6051D'] | |
226 ]]; |