Permalink
Browse files

Finished.

  • Loading branch information...
1 parent 1def656 commit 9c04eb6d9f00ea9f843c21934094e2ffb09a18bb @qtpi committed Feb 14, 2013
Showing with 88 additions and 25 deletions.
  1. +25 −25 jellybeans.itermcolors
  2. +63 −0 scripts/256colors2.pl
@@ -23,11 +23,11 @@
<key>Ansi 10 Color</key>
<dict>
<key>Blue Component</key>
- <real>0.47450980392156861</real>
+ <real>0.6705882352941176</real>
<key>Green Component</key>
- <real>0.72941176470588232</real>
+ <real>0.87058823529411766</real>
<key>Red Component</key>
- <real>0.58431372549019611</real>
+ <real>0.74117647058823533</real>
</dict>
<key>Ansi 11 Color</key>
<dict>
@@ -41,29 +41,29 @@
<key>Ansi 12 Color</key>
<dict>
<key>Blue Component</key>
- <real>0.86274509803921573</real>
+ <real>0.96470588235294119</real>
<key>Green Component</key>
- <real>0.74509803921568629</real>
+ <real>0.84705882352941175</real>
<key>Red Component</key>
- <real>0.59215686274509804</real>
+ <real>0.69411764705882351</real>
</dict>
<key>Ansi 13 Color</key>
<dict>
<key>Blue Component</key>
- <real>0.98039215686274506</real>
+ <real>1</real>
<key>Green Component</key>
- <real>0.75294117647058822</real>
+ <real>0.85490196078431369</real>
<key>Red Component</key>
- <real>0.88235294117647056</real>
+ <real>0.98431372549019602</real>
</dict>
<key>Ansi 14 Color</key>
<dict>
<key>Blue Component</key>
- <real>0.59607843137254901</real>
+ <real>0.6588235294117647</real>
<key>Green Component</key>
- <real>0.59607843137254901</real>
+ <real>0.69803921568627447</real>
<key>Red Component</key>
- <real>0.0</real>
+ <real>0.10196078431372549</real>
</dict>
<key>Ansi 15 Color</key>
<dict>
@@ -79,16 +79,16 @@
<key>Blue Component</key>
<real>0.47450980392156861</real>
<key>Green Component</key>
- <real>0.72941176470588232</real>
+ <real>0.72549019607843135</real>
<key>Red Component</key>
- <real>0.58431372549019611</real>
+ <real>0.58039215686274503</real>
</dict>
<key>Ansi 3 Color</key>
<dict>
<key>Blue Component</key>
- <real>0.62745098039215685</real>
+ <real>0.4823529411764706</real>
<key>Green Component</key>
- <real>0.86274509803921573</real>
+ <real>0.72941176470588232</real>
<key>Red Component</key>
<real>1</real>
</dict>
@@ -131,29 +131,29 @@
<key>Ansi 8 Color</key>
<dict>
<key>Blue Component</key>
- <real>0.5725490196078431</real>
+ <real>0.74117647058823533</real>
<key>Green Component</key>
- <real>0.5725490196078431</real>
+ <real>0.74117647058823533</real>
<key>Red Component</key>
- <real>0.5725490196078431</real>
+ <real>0.74117647058823533</real>
</dict>
<key>Ansi 9 Color</key>
<dict>
<key>Blue Component</key>
- <real>0.45098039215686275</real>
+ <real>0.63137254901960782</real>
<key>Green Component</key>
- <real>0.45098039215686275</real>
+ <real>0.63137254901960782</real>
<key>Red Component</key>
- <real>0.88627450980392153</real>
+ <real>1</real>
</dict>
<key>Background Color</key>
<dict>
<key>Blue Component</key>
- <real>0.090196078431372548</real>
+ <real>0.070588235294117646</real>
<key>Green Component</key>
- <real>0.090196078431372548</real>
+ <real>0.070588235294117646</real>
<key>Red Component</key>
- <real>0.090196078431372548</real>
+ <real>0.070588235294117646</real>
</dict>
<key>Bold Color</key>
<dict>
View
@@ -0,0 +1,63 @@
+#!/usr/bin/perl
+# Author: Todd Larason <jtl@molehill.org>
+# $XFree86: xc/programs/xterm/vttests/256colors2.pl,v 1.2 2002/03/26 01:46:43 dickey Exp $
+
+# use the resources for colors 0-15 - usually more-or-less a
+# reproduction of the standard ANSI colors, but possibly more
+# pleasing shades
+
+# colors 16-231 are a 6x6x6 color cube
+for ($red = 0; $red < 6; $red++) {
+ for ($green = 0; $green < 6; $green++) {
+ for ($blue = 0; $blue < 6; $blue++) {
+ printf("\x1b]4;%d;rgb:%2.2x/%2.2x/%2.2x\x1b\\",
+ 16 + ($red * 36) + ($green * 6) + $blue,
+ ($red ? ($red * 40 + 55) : 0),
+ ($green ? ($green * 40 + 55) : 0),
+ ($blue ? ($blue * 40 + 55) : 0));
+ }
+ }
+}
+
+# colors 232-255 are a grayscale ramp, intentionally leaving out
+# black and white
+for ($gray = 0; $gray < 24; $gray++) {
+ $level = ($gray * 10) + 8;
+ printf("\x1b]4;%d;rgb:%2.2x/%2.2x/%2.2x\x1b\\",
+ 232 + $gray, $level, $level, $level);
+}
+
+
+# display the colors
+
+# first the system ones:
+print "System colors:\n";
+for ($color = 0; $color < 8; $color++) {
+ print "\x1b[48;5;${color}m ";
+}
+print "\x1b[0m\n";
+for ($color = 8; $color < 16; $color++) {
+ print "\x1b[48;5;${color}m ";
+}
+print "\x1b[0m\n\n";
+
+# now the color cube
+print "Color cube, 6x6x6:\n";
+for ($green = 0; $green < 6; $green++) {
+ for ($red = 0; $red < 6; $red++) {
+ for ($blue = 0; $blue < 6; $blue++) {
+ $color = 16 + ($red * 36) + ($green * 6) + $blue;
+ print "\x1b[48;5;${color}m ";
+ }
+ print "\x1b[0m ";
+ }
+ print "\n";
+}
+
+
+# now the grayscale ramp
+print "Grayscale ramp:\n";
+for ($color = 232; $color < 256; $color++) {
+ print "\x1b[48;5;${color}m ";
+}
+print "\x1b[0m\n";

0 comments on commit 9c04eb6

Please sign in to comment.