gviz 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,673 @@
1
+ # X11 Color Scheme
2
+ require_relative "../lib/gviz"
3
+
4
+ colors = DATA.lines.map(&:chomp).reject { |l| l.empty? }
5
+
6
+ g = Gviz.new(:graph1)
7
+
8
+ g.graph do
9
+ colors.each_slice(70) do |gr|
10
+ gr.each_cons(2) do |a, b|
11
+ route a.intern => b.intern
12
+ end
13
+ end
14
+ colors.each { |c| node c.intern, style:'filled', fillcolor: c }
15
+ end
16
+
17
+ puts g
18
+ __END__
19
+ aliceblue
20
+ antiquewhite
21
+ antiquewhite1
22
+ antiquewhite2
23
+ antiquewhite3
24
+ antiquewhite4
25
+ aquamarine
26
+ aquamarine1
27
+ aquamarine2
28
+ aquamarine3
29
+ aquamarine4
30
+ azure
31
+ azure1
32
+ azure2
33
+ azure3
34
+ azure4
35
+ beige
36
+ bisque
37
+ bisque1
38
+ bisque2
39
+ bisque3
40
+ bisque4
41
+ black
42
+ blanchedalmond
43
+ blue
44
+ blue1
45
+ blue2
46
+ blue3
47
+ blue4
48
+ blueviolet
49
+ brown
50
+ brown1
51
+ brown2
52
+ brown3
53
+ brown4
54
+ burlywood
55
+ burlywood1
56
+ burlywood2
57
+ burlywood3
58
+ burlywood4
59
+ cadetblue
60
+ cadetblue1
61
+ cadetblue2
62
+ cadetblue3
63
+ cadetblue4
64
+ chartreuse
65
+ chartreuse1
66
+ chartreuse2
67
+ chartreuse3
68
+ chartreuse4
69
+ chocolate
70
+ chocolate1
71
+ chocolate2
72
+ chocolate3
73
+ chocolate4
74
+ coral
75
+ coral1
76
+ coral2
77
+ coral3
78
+ coral4
79
+ cornflowerblue
80
+ cornsilk
81
+ cornsilk1
82
+ cornsilk2
83
+ cornsilk3
84
+ cornsilk4
85
+ crimson
86
+ cyan
87
+ cyan1
88
+ cyan2
89
+ cyan3
90
+ cyan4
91
+ darkgoldenrod
92
+ darkgoldenrod1
93
+ darkgoldenrod2
94
+ darkgoldenrod3
95
+ darkgoldenrod4
96
+ darkgreen
97
+ darkkhaki
98
+ darkolivegreen
99
+ darkolivegreen1
100
+ darkolivegreen2
101
+ darkolivegreen3
102
+ darkolivegreen4
103
+ darkorange
104
+ darkorange1
105
+ darkorange2
106
+ darkorange3
107
+ darkorange4
108
+ darkorchid
109
+ darkorchid1
110
+ darkorchid2
111
+ darkorchid3
112
+ darkorchid4
113
+ darksalmon
114
+ darkseagreen
115
+ darkseagreen1
116
+ darkseagreen2
117
+ darkseagreen3
118
+ darkseagreen4
119
+ darkslateblue
120
+ darkslategray
121
+ darkslategray1
122
+ darkslategray2
123
+ darkslategray3
124
+ darkslategray4
125
+ darkslategrey
126
+ darkturquoise
127
+ darkviolet
128
+ deeppink
129
+ deeppink1
130
+ deeppink2
131
+ deeppink3
132
+ deeppink4
133
+ deepskyblue
134
+ deepskyblue1
135
+ deepskyblue2
136
+ deepskyblue3
137
+ deepskyblue4
138
+ dimgray
139
+ dimgrey
140
+ dodgerblue
141
+ dodgerblue1
142
+ dodgerblue2
143
+ dodgerblue3
144
+ dodgerblue4
145
+ firebrick
146
+ firebrick1
147
+ firebrick2
148
+ firebrick3
149
+ firebrick4
150
+ floralwhite
151
+ forestgreen
152
+ gainsboro
153
+ ghostwhite
154
+ gold
155
+ gold1
156
+ gold2
157
+ gold3
158
+ gold4
159
+ goldenrod
160
+ goldenrod1
161
+ goldenrod2
162
+ goldenrod3
163
+ goldenrod4
164
+ gray
165
+ gray0
166
+ gray1
167
+ gray2
168
+ gray3
169
+ gray4
170
+ gray5
171
+ gray6
172
+ gray7
173
+ gray8
174
+ gray9
175
+ gray10
176
+ gray11
177
+ gray12
178
+ gray13
179
+ gray14
180
+ gray15
181
+ gray16
182
+ gray17
183
+ gray18
184
+ gray19
185
+ gray20
186
+ gray21
187
+ gray22
188
+ gray23
189
+ gray24
190
+ gray25
191
+ gray26
192
+ gray27
193
+ gray28
194
+ gray29
195
+ gray30
196
+ gray31
197
+ gray32
198
+ gray33
199
+ gray34
200
+ gray35
201
+ gray36
202
+ gray37
203
+ gray38
204
+ gray39
205
+ gray40
206
+ gray41
207
+ gray42
208
+ gray43
209
+ gray44
210
+ gray45
211
+ gray46
212
+ gray47
213
+ gray48
214
+ gray49
215
+ gray50
216
+ gray51
217
+ gray52
218
+ gray53
219
+ gray54
220
+ gray55
221
+ gray56
222
+ gray57
223
+ gray58
224
+ gray59
225
+ gray60
226
+ gray61
227
+ gray62
228
+ gray63
229
+ gray64
230
+ gray65
231
+ gray66
232
+ gray67
233
+ gray68
234
+ gray69
235
+ gray70
236
+ gray71
237
+ gray72
238
+ gray73
239
+ gray74
240
+ gray75
241
+ gray76
242
+ gray77
243
+ gray78
244
+ gray79
245
+ gray80
246
+ gray81
247
+ gray82
248
+ gray83
249
+ gray84
250
+ gray85
251
+ gray86
252
+ gray87
253
+ gray88
254
+ gray89
255
+ gray90
256
+ gray91
257
+ gray92
258
+ gray93
259
+ gray94
260
+ gray95
261
+ gray96
262
+ gray97
263
+ gray98
264
+ gray99
265
+ gray100
266
+ green
267
+ green1
268
+ green2
269
+ green3
270
+ green4
271
+ greenyellow
272
+ grey
273
+ grey0
274
+ grey1
275
+ grey2
276
+ grey3
277
+ grey4
278
+ grey5
279
+ grey6
280
+ grey7
281
+ grey8
282
+ grey9
283
+ grey10
284
+ grey11
285
+ grey12
286
+ grey13
287
+ grey14
288
+ grey15
289
+ grey16
290
+ grey17
291
+ grey18
292
+ grey19
293
+ grey20
294
+ grey21
295
+ grey22
296
+ grey23
297
+ grey24
298
+ grey25
299
+ grey26
300
+ grey27
301
+ grey28
302
+ grey29
303
+ grey30
304
+ grey31
305
+ grey32
306
+ grey33
307
+ grey34
308
+ grey35
309
+ grey36
310
+ grey37
311
+ grey38
312
+ grey39
313
+ grey40
314
+ grey41
315
+ grey42
316
+ grey43
317
+ grey44
318
+ grey45
319
+ grey46
320
+ grey47
321
+ grey48
322
+ grey49
323
+ grey50
324
+ grey51
325
+ grey52
326
+ grey53
327
+ grey54
328
+ grey55
329
+ grey56
330
+ grey57
331
+ grey58
332
+ grey59
333
+ grey60
334
+ grey61
335
+ grey62
336
+ grey63
337
+ grey64
338
+ grey65
339
+ grey66
340
+ grey67
341
+ grey68
342
+ grey69
343
+ grey70
344
+ grey71
345
+ grey72
346
+ grey73
347
+ grey74
348
+ grey75
349
+ grey76
350
+ grey77
351
+ grey78
352
+ grey79
353
+ grey80
354
+ grey81
355
+ grey82
356
+ grey83
357
+ grey84
358
+ grey85
359
+ grey86
360
+ grey87
361
+ grey88
362
+ grey89
363
+ grey90
364
+ grey91
365
+ grey92
366
+ grey93
367
+ grey94
368
+ grey95
369
+ grey96
370
+ grey97
371
+ grey98
372
+ grey99
373
+ grey100
374
+ honeydew
375
+ honeydew1
376
+ honeydew2
377
+ honeydew3
378
+ honeydew4
379
+ hotpink
380
+ hotpink1
381
+ hotpink2
382
+ hotpink3
383
+ hotpink4
384
+ indianred
385
+ indianred1
386
+ indianred2
387
+ indianred3
388
+ indianred4
389
+ indigo
390
+ invis
391
+ ivory
392
+ ivory1
393
+ ivory2
394
+ ivory3
395
+ ivory4
396
+ khaki
397
+ khaki1
398
+ khaki2
399
+ khaki3
400
+ khaki4
401
+ lavender
402
+ lavenderblush
403
+ lavenderblush1
404
+ lavenderblush2
405
+ lavenderblush3
406
+ lavenderblush4
407
+ lawngreen
408
+ lemonchiffon
409
+ lemonchiffon1
410
+ lemonchiffon2
411
+ lemonchiffon3
412
+ lemonchiffon4
413
+ lightblue
414
+ lightblue1
415
+ lightblue2
416
+ lightblue3
417
+ lightblue4
418
+ lightcoral
419
+ lightcyan
420
+ lightcyan1
421
+ lightcyan2
422
+ lightcyan3
423
+ lightcyan4
424
+ lightgoldenrod
425
+ lightgoldenrod1
426
+ lightgoldenrod2
427
+ lightgoldenrod3
428
+ lightgoldenrod4
429
+ lightgoldenrodyellow
430
+ lightgray
431
+ lightgrey
432
+ lightpink
433
+ lightpink1
434
+ lightpink2
435
+ lightpink3
436
+ lightpink4
437
+ lightsalmon
438
+ lightsalmon1
439
+ lightsalmon2
440
+ lightsalmon3
441
+ lightsalmon4
442
+ lightseagreen
443
+ lightskyblue
444
+ lightskyblue1
445
+ lightskyblue2
446
+ lightskyblue3
447
+ lightskyblue4
448
+ lightslateblue
449
+ lightslategray
450
+ lightslategrey
451
+ lightsteelblue
452
+ lightsteelblue1
453
+ lightsteelblue2
454
+ lightsteelblue3
455
+ lightsteelblue4
456
+ lightyellow
457
+ lightyellow1
458
+ lightyellow2
459
+ lightyellow3
460
+ lightyellow4
461
+ limegreen
462
+ linen
463
+ magenta
464
+ magenta1
465
+ magenta2
466
+ magenta3
467
+ magenta4
468
+ maroon
469
+ maroon1
470
+ maroon2
471
+ maroon3
472
+ maroon4
473
+ mediumaquamarine
474
+ mediumblue
475
+ mediumorchid
476
+ mediumorchid1
477
+ mediumorchid2
478
+ mediumorchid3
479
+ mediumorchid4
480
+ mediumpurple
481
+ mediumpurple1
482
+ mediumpurple2
483
+ mediumpurple3
484
+ mediumpurple4
485
+ mediumseagreen
486
+ mediumslateblue
487
+ mediumspringgreen
488
+ mediumturquoise
489
+ mediumvioletred
490
+ midnightblue
491
+ mintcream
492
+ mistyrose
493
+ mistyrose1
494
+ mistyrose2
495
+ mistyrose3
496
+ mistyrose4
497
+ moccasin
498
+ navajowhite
499
+ navajowhite1
500
+ navajowhite2
501
+ navajowhite3
502
+ navajowhite4
503
+ navy
504
+ navyblue
505
+ none
506
+ oldlace
507
+ olivedrab
508
+ olivedrab1
509
+ olivedrab2
510
+ olivedrab3
511
+ olivedrab4
512
+ orange
513
+ orange1
514
+ orange2
515
+ orange3
516
+ orange4
517
+ orangered
518
+ orangered1
519
+ orangered2
520
+ orangered3
521
+ orangered4
522
+ orchid
523
+ orchid1
524
+ orchid2
525
+ orchid3
526
+ orchid4
527
+ palegoldenrod
528
+ palegreen
529
+ palegreen1
530
+ palegreen2
531
+ palegreen3
532
+ palegreen4
533
+ paleturquoise
534
+ paleturquoise1
535
+ paleturquoise2
536
+ paleturquoise3
537
+ paleturquoise4
538
+ palevioletred
539
+ palevioletred1
540
+ palevioletred2
541
+ palevioletred3
542
+ palevioletred4
543
+ papayawhip
544
+ peachpuff
545
+ peachpuff1
546
+ peachpuff2
547
+ peachpuff3
548
+ peachpuff4
549
+ peru
550
+ pink
551
+ pink1
552
+ pink2
553
+ pink3
554
+ pink4
555
+ plum
556
+ plum1
557
+ plum2
558
+ plum3
559
+ plum4
560
+ powderblue
561
+ purple
562
+ purple1
563
+ purple2
564
+ purple3
565
+ purple4
566
+ red
567
+ red1
568
+ red2
569
+ red3
570
+ red4
571
+ rosybrown
572
+ rosybrown1
573
+ rosybrown2
574
+ rosybrown3
575
+ rosybrown4
576
+ royalblue
577
+ royalblue1
578
+ royalblue2
579
+ royalblue3
580
+ royalblue4
581
+ saddlebrown
582
+ salmon
583
+ salmon1
584
+ salmon2
585
+ salmon3
586
+ salmon4
587
+ sandybrown
588
+ seagreen
589
+ seagreen1
590
+ seagreen2
591
+ seagreen3
592
+ seagreen4
593
+ seashell
594
+ seashell1
595
+ seashell2
596
+ seashell3
597
+ seashell4
598
+ sienna
599
+ sienna1
600
+ sienna2
601
+ sienna3
602
+ sienna4
603
+ skyblue
604
+ skyblue1
605
+ skyblue2
606
+ skyblue3
607
+ skyblue4
608
+ slateblue
609
+ slateblue1
610
+ slateblue2
611
+ slateblue3
612
+ slateblue4
613
+ slategray
614
+ slategray1
615
+ slategray2
616
+ slategray3
617
+ slategray4
618
+ slategrey
619
+ snow
620
+ snow1
621
+ snow2
622
+ snow3
623
+ snow4
624
+ springgreen
625
+ springgreen1
626
+ springgreen2
627
+ springgreen3
628
+ springgreen4
629
+ steelblue
630
+ steelblue1
631
+ steelblue2
632
+ steelblue3
633
+ steelblue4
634
+ tan
635
+ tan1
636
+ tan2
637
+ tan3
638
+ tan4
639
+ thistle
640
+ thistle1
641
+ thistle2
642
+ thistle3
643
+ thistle4
644
+ tomato
645
+ tomato1
646
+ tomato2
647
+ tomato3
648
+ tomato4
649
+ transparent
650
+ turquoise
651
+ turquoise1
652
+ turquoise2
653
+ turquoise3
654
+ turquoise4
655
+ violet
656
+ violetred
657
+ violetred1
658
+ violetred2
659
+ violetred3
660
+ violetred4
661
+ wheat
662
+ wheat1
663
+ wheat2
664
+ wheat3
665
+ wheat4
666
+ white
667
+ whitesmoke
668
+ yellow
669
+ yellow1
670
+ yellow2
671
+ yellow3
672
+ yellow4
673
+ yellowgreen