Commits

J.A. Roberts Tunney committed a7cfbe7

fabulous 0.1.4

  • Participants
  • Parent commits 5715a2d
  • Tags 0.1.4

Comments (0)

Files changed (2)

fabulous/__init__.py

-VERSION = (0, 1, 3, 'final', 0)
-__version__ = '0.1.3'
+VERSION = (0, 1, 4, 'final', 0)
+__version__ = '0.1.4'

fabulous/_xterm256.c

         return best_match;
 }
 
+/* int rgb_to_xterm(int r, int g, int b) */
+/* { */
+/*         int best_match = 0; */
+/*         int smallest_distance = 1000000000; */
+/*         int c, d; */
+/*         for (c = 0; c < 16; c++) { */
+/*                 d = sqr(BASIC16[c].r - r) + */
+/* 			sqr(BASIC16[c].g - g) + */
+/* 			sqr(BASIC16[c].b - b); */
+/*                 if (d < smallest_distance) { */
+/*                         smallest_distance = d; */
+/*                         best_match = c; */
+/*                 } */
+/*         } */
+/*         return best_match; */
+/* } */
+
 int init()
 {
         int c;