Plan 9 from Bell Labs’s /usr/web/sources/extra/i/rgb.h

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


// closest color in the rgbvmap, indexed by B+16*(G+16*B)
static uchar closestrgb[16*16*16] = {
	    0,    0,    0,    1,    1,   18,   35,   52,
	    2,   19,   36,   53,    3,   20,   37,   54,
	    0,    0,    0,    1,    1,   18,   35,   52,
	    2,   19,   36,   53,    3,   20,   37,   54,
	    0,    0,    0,    5,    5,    5,   35,    6,
	    6,    6,   23,    7,    7,    7,   24,   54,
	    4,    4,    5,    5,    5,    5,    6,    6,
	    6,    6,   23,    7,    7,    7,   24,   54,
	    4,    4,    5,    5,    5,   22,   22,    6,
	    6,   23,   40,   40,    7,   24,   41,   58,
	   21,   21,    5,    5,   22,   22,   39,   39,
	    6,   23,   40,   57,   57,   24,   41,   58,
	   38,   38,   38,    9,   22,   39,   39,   56,
	   56,   40,   40,   57,   57,   57,   41,   58,
	   55,   55,    9,    9,    9,   39,   56,   56,
	   10,   10,   57,   11,   11,   11,   28,   58,
	    8,    8,    9,    9,    9,    9,   56,   10,
	   10,   10,   27,   11,   11,   11,   28,   62,
	   25,   25,    9,    9,   26,   26,   43,   10,
	   10,   27,   27,   44,   11,   28,   45,   62,
	   42,   42,   26,   26,   43,   43,   43,   60,
	   27,   27,   44,   44,   61,   28,   45,   62,
	   59,   59,   13,   13,   43,   60,   60,   14,
	   14,   44,   44,   61,   61,   15,   45,   62,
	   12,   12,   13,   13,   13,   60,   60,   14,
	   14,   14,   61,   61,   15,   15,   16,   50,
	   29,   29,   13,   13,   30,   30,   60,   14,
	   14,   31,   31,   15,   15,   16,   16,   50,
	   46,   46,   30,   30,   47,   47,   47,   31,
	   31,   32,   32,   32,   16,   16,   33,   50,
	   63,   63,   63,   63,   48,   48,   48,   48,
	   49,   49,   49,   49,   50,   50,   50,   50,
	    0,    0,    0,    1,    1,   18,   35,   52,
	    2,   19,   36,   53,    3,   20,   37,   54,
	    0,   17,   34,   34,    1,   18,   35,   52,
	    2,   19,   36,   53,    3,   20,   37,   54,
	    0,   34,   34,   34,   51,    5,   35,    6,
	    6,    6,   23,    7,    7,    7,   24,   54,
	    4,   34,   34,   51,    5,    5,    6,    6,
	    6,    6,   23,    7,    7,    7,   24,   54,
	    4,    4,   51,    5,    5,   22,   22,    6,
	    6,   23,   40,   40,    7,   24,   41,   58,
	   21,   21,    5,    5,   22,   22,   39,   39,
	    6,   23,   40,   57,   57,   24,   41,   58,
	   38,   38,   38,    9,   22,   39,   39,   56,
	   56,   40,   40,   57,   57,   57,   41,   58,
	   55,   55,    9,    9,    9,   39,   56,   56,
	   10,   10,   57,   11,   11,   11,   28,   58,
	    8,    8,    9,    9,    9,    9,   56,   10,
	   10,   10,   27,   11,   11,   11,   28,   62,
	   25,   25,    9,    9,   26,   26,   43,   10,
	   10,   27,   27,   44,   11,   28,   45,   62,
	   42,   42,   26,   26,   43,   43,   43,   60,
	   27,   27,   44,   44,   61,   28,   45,   62,
	   59,   59,   13,   13,   43,   60,   60,   14,
	   14,   44,   44,   61,   61,   15,   45,   62,
	   12,   12,   13,   13,   13,   60,   60,   14,
	   14,   14,   61,   61,   15,   15,   16,   50,
	   29,   29,   13,   13,   30,   30,   60,   14,
	   14,   31,   31,   15,   15,   16,   16,   50,
	   46,   46,   30,   30,   47,   47,   47,   31,
	   31,   32,   32,   32,   16,   16,   33,   50,
	   63,   63,   63,   63,   48,   48,   48,   48,
	   49,   49,   49,   49,   50,   50,   50,   50,
	    0,    0,    0,   64,   64,   64,   35,   65,
	   65,   65,   82,   66,   66,   66,   83,   54,
	    0,   34,   34,   34,   51,   64,   35,   65,
	   65,   65,   82,   66,   66,   66,   83,   54,
	    0,   34,   34,   51,   51,   51,   69,   69,
	   69,   69,   69,   70,   70,   70,   87,   54,
	   67,   34,   51,   51,   51,   68,   69,   69,
	   69,   69,   23,   70,   70,   70,   87,   54,
	   67,   51,   51,   51,   68,   68,   69,   69,
	   69,   69,   86,   70,   70,   70,   87,   58,
	   67,   67,   51,   68,   68,   22,   39,   69,
	   69,   69,   40,   70,   70,   70,   87,   58,
	   38,   38,   72,   72,   72,   39,   39,   56,
	   73,   73,   40,   57,   57,   74,   41,   58,
	   71,   71,   72,   72,   72,   72,   56,   73,
	   73,   73,   73,   74,   74,   74,   74,   58,
	   71,   71,   72,   72,   72,   72,   73,   73,
	   73,   73,   73,   74,   74,   74,   91,   62,
	   71,   71,   72,   72,   72,   72,   73,   73,
	   73,   27,   90,   74,   74,   91,   91,   62,
	   88,   88,   72,   26,   89,   43,   43,   73,
	   73,   90,   44,   44,   74,   91,   45,   62,
	   75,   75,   76,   76,   76,   76,   60,   77,
	   77,   77,   44,   61,   78,   78,   78,   62,
	   75,   75,   76,   76,   76,   76,   60,   77,
	   77,   77,   77,   78,   78,   78,   78,   50,
	   75,   75,   76,   76,   76,   76,   77,   77,
	   77,   94,   94,   78,   78,   78,   95,   50,
	   92,   92,   93,   93,   93,   93,   47,   77,
	   94,   94,   32,   78,   78,   95,   95,   50,
	   63,   63,   63,   63,   48,   48,   48,   48,
	   49,   49,   49,   49,   50,   50,   50,   50,
	   79,   79,   64,   64,   64,   64,   65,   65,
	   65,   65,   82,   66,   66,   66,   83,   54,
	   79,   34,   34,   51,   64,   64,   65,   65,
	   65,   65,   82,   66,   66,   66,   83,   54,
	   67,   34,   51,   51,   51,   68,   69,   69,
	   69,   69,   82,   70,   70,   70,   87,   54,
	   67,   51,   51,   51,   68,   68,   69,   69,
	   69,   69,   86,   70,   70,   70,   87,   54,
	   67,   67,   51,   68,   68,   68,   69,   69,
	   69,   69,   86,   70,   70,   70,   87,   58,
	   67,   67,   68,   68,   68,   85,   85,   69,
	   69,   86,   86,   70,   70,   87,   87,   58,
	   71,   71,   72,   72,   72,   85,   85,   73,
	   73,   86,  103,  103,   74,   87,  104,   58,
	   71,   71,   72,   72,   72,   72,   73,   73,
	   73,   73,   73,   74,   74,   74,   91,   58,
	   71,   71,   72,   72,   72,   72,   73,   73,
	   73,   73,   90,   74,   74,   74,   91,   62,
	   71,   71,   72,   72,   72,   89,   89,   73,
	   73,   90,   90,   74,   74,   91,   91,   62,
	   88,   88,   88,   89,   89,   89,  106,   73,
	   90,   90,   90,  107,   74,   91,  108,   62,
	   75,   75,   76,   76,   76,   76,  106,   77,
	   77,   77,  107,   78,   78,   78,  108,   62,
	   75,   75,   76,   76,   76,   76,   77,   77,
	   77,   77,   77,   78,   78,   78,   95,   50,
	   75,   75,   76,   76,   76,   93,   93,   77,
	   77,   94,   94,   78,   78,   95,   95,   50,
	   92,   92,   93,   93,   93,   93,  110,   94,
	   94,   94,  111,  111,   95,   95,   95,   50,
	   63,   63,   63,   63,   48,   48,   48,   48,
	   49,   49,   49,   49,   50,   50,   50,   50,
	   79,   79,   64,   64,   64,   81,   81,   65,
	   65,   82,   99,   99,   66,   83,  100,  117,
	   79,   79,   51,   64,   64,   81,   81,   65,
	   65,   82,   99,   99,   66,   83,  100,  117,
	   67,   51,   51,   51,   68,   68,   69,   69,
	   69,   69,   86,   70,   70,   70,   87,  117,
	   67,   67,   51,   68,   68,   68,   69,   69,
	   69,   69,   86,   70,   70,   70,   87,  117,
	   67,   67,   68,   68,   68,   85,   85,   69,
	   69,   86,   86,   70,   70,   87,  104,  121,
	   84,   84,   68,   68,   85,   85,   85,   69,
	   69,   86,  103,  103,   70,   87,  104,  121,
	   84,   84,   72,   72,   85,   85,   85,  102,
	   73,   86,  103,  120,  120,   87,  104,  121,
	   71,   71,   72,   72,   72,   72,  102,   73,
	   73,   73,   73,   74,   74,   74,   91,  121,
	   71,   71,   72,   72,   72,   72,   73,   73,
	   73,   73,   90,   74,   74,   74,   91,  125,
	   88,   88,   72,   72,   89,   89,   89,   73,
	   73,   90,   90,   74,   74,   91,  108,  125,
	  105,  105,   89,   89,   89,  106,  106,   73,
	   90,   90,  107,  107,   91,   91,  108,  125,
	  105,  105,   76,   76,   76,  106,  123,   77,
	   77,   77,  107,  124,   78,   78,  108,  125,
	   75,   75,   76,   76,   76,   76,  123,   77,
	   77,   77,   94,   78,   78,   78,   95,  113,
	   92,   92,   76,   76,   93,   93,   93,   77,
	   77,   94,   94,   78,   78,   95,   95,  113,
	  109,  109,   93,   93,  110,  110,  110,   94,
	   94,  111,  111,  111,   95,   95,   96,  113,
	  126,  126,  126,  126,  127,  127,  127,  127,
	  112,  112,  112,  112,  113,  113,  113,  113,
	   80,   80,   64,   64,   81,   81,   98,   98,
	   65,   82,   99,  116,  116,   83,  100,  117,
	   80,   80,   64,   64,   81,   81,   98,   98,
	   65,   82,   99,  116,  116,   83,  100,  117,
	   67,   67,   51,   68,   68,   68,   98,   69,
	   69,   69,   99,   70,   70,   70,   87,  117,
	   67,   67,   68,   68,   68,   85,   85,   69,
	   69,   86,   86,   70,   70,   87,   87,  117,
	   84,   84,   68,   68,   85,   85,   85,   69,
	   69,   86,  103,  103,   70,   87,  104,  121,
	   84,   84,   68,   85,   85,   85,   85,  102,
	   86,   86,  103,  120,  120,   87,  104,  121,
	  101,  101,  101,   85,   85,   85,  102,  102,
	   86,  103,  103,  120,  120,  120,  104,  121,
	  101,  101,   72,   72,   72,  102,  102,  102,
	   73,   73,  120,  120,   74,   74,   91,  121,
	   71,   71,   72,   72,   72,   89,   89,   73,
	   73,   90,   90,   74,   74,   91,   91,  125,
	   88,   88,   72,   89,   89,   89,  106,   73,
	   90,   90,   90,  107,   74,   91,  108,  125,
	  105,  105,  105,   89,  106,  106,  106,  123,
	   90,   90,  107,  107,  124,  108,  108,  125,
	  122,  122,   76,   76,  106,  123,  123,  123,
	   77,  107,  107,  124,  124,  124,  125,  125,
	  122,  122,   76,   76,   76,  123,  123,   77,
	   77,   77,  124,  124,  124,   78,   95,  113,
	   92,   92,   76,   93,   93,   93,  123,   77,
	   94,   94,  111,  124,   78,   95,   95,  113,
	  109,  109,   93,   93,  110,  110,  110,   94,
	   94,  111,  111,  112,   95,   95,   96,  113,
	  126,  126,  126,  126,  127,  127,  127,  127,
	  112,  112,  112,  112,  113,  113,  113,  113,
	   97,   97,   97,  143,   81,   98,   98,  115,
	  115,   99,   99,  116,  116,  116,  100,  117,
	   97,   97,   97,  143,   81,   98,   98,  115,
	  115,   99,   99,  116,  116,  116,  100,  117,
	   97,   97,  131,  131,  131,   98,   98,  115,
	  132,  132,   99,  116,  116,  133,  100,  117,
	  130,  130,  131,  131,  131,   85,   85,  132,
	  132,   86,  103,  103,  133,   87,  104,  117,
	   84,   84,  131,  131,   85,   85,   85,  102,
	  132,   86,  103,  120,  120,   87,  104,  121,
	  101,  101,  101,   85,   85,   85,  102,  102,
	   86,  103,  103,  120,  120,  120,  104,  121,
	  101,  101,  101,   85,   85,  102,  102,  102,
	  119,  103,  120,  120,  120,  120,  121,  121,
	  118,  118,  118,  135,  102,  102,  102,  119,
	  119,  119,  120,  120,  120,  137,   91,  121,
	  118,  118,  135,  135,  135,   89,  119,  119,
	  119,   90,   90,  137,  137,   91,  108,  125,
	  105,  105,  135,   89,   89,  106,  106,  119,
	   90,   90,  107,  107,  137,   91,  108,  125,
	  105,  105,  105,  106,  106,  106,  123,  123,
	   90,  107,  107,  124,  124,  108,  108,  125,
	  122,  122,  122,  106,  123,  123,  123,  123,
	  140,  107,  124,  124,  124,  124,  125,  125,
	  122,  122,  122,  139,  123,  123,  123,  123,
	  140,  140,  124,  124,  124,  124,   95,  113,
	  122,  122,  139,   93,   93,  123,  123,  140,
	   94,   94,  111,  124,  124,   95,   95,  113,
	  109,  109,  109,  110,  110,  110,  127,   94,
	  111,  111,  111,  112,   95,   95,   96,  113,
	  126,  126,  126,  126,  127,  127,  127,  127,
	  112,  112,  112,  112,  113,  113,  113,  113,
	  114,  114,  143,  143,  143,   98,  115,  115,
	  115,  128,  116,  129,  129,  129,  146,  117,
	  114,  114,  143,  143,  143,   98,  115,  115,
	  115,  128,  116,  129,  129,  129,  146,  117,
	  130,  130,  131,  131,  131,  131,  115,  132,
	  132,  132,  132,  133,  133,  133,  133,  117,
	  130,  130,  131,  131,  131,  131,  132,  132,
	  132,  132,  132,  133,  133,  133,  150,  117,
	  130,  130,  131,  131,  131,  131,  102,  132,
	  132,  132,  103,  133,  133,  133,  150,  121,
	  101,  101,  131,  131,  131,  102,  102,  102,
	  132,  132,  120,  120,  133,  133,  150,  121,
	  118,  118,  118,  135,  102,  102,  102,  119,
	  119,  119,  120,  120,  120,  137,  150,  121,
	  118,  118,  135,  135,  135,  102,  119,  119,
	  119,  136,  136,  137,  137,  137,  137,  121,
	  118,  118,  135,  135,  135,  135,  119,  119,
	  136,  136,  136,  137,  137,  137,  154,  125,
	  134,  134,  135,  135,  135,  135,  119,  136,
	  136,  136,  153,  137,  137,  137,  154,  125,
	  122,  122,  135,  135,  106,  123,  123,  136,
	  136,  153,  107,  124,  124,  154,  154,  125,
	  138,  138,  139,  139,  139,  123,  123,  140,
	  140,  140,  124,  124,  141,  141,  141,  125,
	  138,  138,  139,  139,  139,  139,  123,  140,
	  140,  140,  124,  141,  141,  141,  141,  113,
	  138,  138,  139,  139,  139,  139,  140,  140,
	  140,  140,  157,  141,  141,  141,  158,  113,
	  155,  155,  139,  156,  156,  156,  156,  140,
	  157,  157,  157,  141,  141,  158,  158,  113,
	  126,  126,  126,  126,  127,  127,  127,  127,
	  112,  112,  112,  112,  113,  113,  113,  113,
	  142,  142,  143,  143,  143,  143,  115,  115,
	  128,  128,  145,  129,  129,  129,  146,  180,
	  142,  142,  143,  143,  143,  143,  115,  115,
	  128,  128,  145,  129,  129,  129,  146,  180,
	  130,  130,  131,  131,  131,  131,  132,  132,
	  132,  132,  132,  133,  133,  133,  150,  180,
	  130,  130,  131,  131,  131,  131,  132,  132,
	  132,  132,  149,  133,  133,  133,  150,  180,
	  130,  130,  131,  131,  131,  131,  132,  132,
	  132,  132,  149,  133,  133,  133,  150,  184,
	  130,  130,  131,  131,  131,  148,  148,  132,
	  132,  149,  149,  133,  133,  150,  150,  184,
	  118,  118,  135,  135,  135,  148,  119,  119,
	  119,  149,  149,  137,  137,  150,  167,  184,
	  118,  118,  135,  135,  135,  135,  119,  119,
	  136,  136,  136,  137,  137,  137,  154,  184,
	  134,  134,  135,  135,  135,  135,  119,  136,
	  136,  136,  153,  137,  137,  137,  154,  188,
	  134,  134,  135,  135,  135,  152,  152,  136,
	  136,  153,  153,  137,  137,  154,  154,  188,
	  151,  151,  135,  152,  152,  152,  152,  136,
	  153,  153,  153,  137,  137,  154,  171,  188,
	  138,  138,  139,  139,  139,  139,  140,  140,
	  140,  140,  140,  141,  141,  141,  141,  188,
	  138,  138,  139,  139,  139,  139,  140,  140,
	  140,  140,  140,  141,  141,  141,  158,  176,
	  138,  138,  139,  139,  139,  156,  156,  140,
	  140,  157,  157,  141,  141,  158,  158,  176,
	  155,  155,  156,  156,  156,  156,  173,  157,
	  157,  157,  174,  141,  158,  158,  158,  176,
	  189,  189,  189,  189,  190,  190,  190,  190,
	  191,  191,  191,  191,  176,  176,  176,  176,
	  159,  159,  143,  143,  144,  144,  161,  128,
	  128,  145,  145,  162,  129,  146,  163,  180,
	  159,  159,  143,  143,  144,  144,  161,  128,
	  128,  145,  145,  162,  129,  146,  163,  180,
	  130,  130,  131,  131,  131,  131,  132,  132,
	  132,  132,  149,  133,  133,  150,  150,  180,
	  130,  130,  131,  131,  131,  148,  148,  132,
	  132,  149,  149,  133,  133,  150,  150,  180,
	  147,  147,  131,  131,  148,  148,  148,  132,
	  132,  149,  149,  133,  133,  150,  167,  184,
	  147,  147,  131,  148,  148,  148,  165,  132,
	  149,  149,  149,  166,  133,  150,  167,  184,
	  164,  164,  135,  148,  148,  165,  165,  119,
	  149,  149,  166,  166,  137,  150,  167,  184,
	  134,  134,  135,  135,  135,  135,  119,  136,
	  136,  136,  153,  137,  137,  137,  154,  184,
	  134,  134,  135,  135,  135,  152,  152,  136,
	  136,  153,  153,  137,  137,  154,  154,  188,
	  151,  151,  135,  152,  152,  152,  152,  136,
	  153,  153,  153,  137,  137,  154,  171,  188,
	  151,  151,  152,  152,  152,  152,  169,  153,
	  153,  153,  170,  170,  154,  154,  171,  188,
	  168,  168,  139,  139,  139,  169,  169,  140,
	  140,  140,  170,  170,  141,  141,  171,  188,
	  138,  138,  139,  139,  139,  139,  140,  140,
	  140,  140,  157,  141,  141,  141,  158,  176,
	  155,  155,  156,  156,  156,  156,  156,  140,
	  157,  157,  157,  141,  141,  158,  158,  176,
	  172,  172,  156,  156,  173,  173,  173,  157,
	  157,  174,  174,  174,  158,  158,  175,  176,
	  189,  189,  189,  189,  190,  190,  190,  190,
	  191,  191,  191,  191,  176,  176,  176,  176,
	  160,  160,  144,  144,  161,  161,  161,  178,
	  145,  145,  162,  162,  179,  146,  163,  180,
	  160,  160,  144,  144,  161,  161,  161,  178,
	  145,  145,  162,  162,  179,  146,  163,  180,
	  147,  147,  131,  144,  148,  161,  161,  132,
	  132,  149,  162,  162,  133,  150,  163,  180,
	  147,  147,  147,  148,  148,  148,  165,  132,
	  149,  149,  149,  166,  133,  150,  167,  180,
	  164,  164,  148,  148,  148,  165,  165,  132,
	  149,  149,  166,  166,  150,  150,  167,  184,
	  164,  164,  164,  148,  165,  165,  165,  182,
	  149,  149,  166,  166,  183,  167,  167,  184,
	  164,  164,  164,  165,  165,  165,  182,  182,
	  149,  166,  166,  183,  183,  167,  167,  184,
	  181,  181,  135,  135,  135,  182,  182,  136,
	  136,  153,  166,  183,  183,  154,  154,  184,
	  151,  151,  135,  152,  152,  152,  152,  136,
	  153,  153,  153,  137,  137,  154,  171,  188,
	  151,  151,  152,  152,  152,  152,  169,  153,
	  153,  153,  170,  170,  154,  154,  171,  188,
	  168,  168,  168,  152,  169,  169,  169,  169,
	  153,  170,  170,  170,  170,  171,  171,  188,
	  168,  168,  168,  169,  169,  169,  186,  186,
	  140,  170,  170,  170,  187,  187,  188,  188,
	  185,  185,  139,  139,  156,  186,  186,  186,
	  140,  157,  170,  187,  187,  158,  158,  176,
	  155,  155,  156,  156,  156,  173,  173,  157,
	  157,  157,  174,  187,  158,  158,  158,  176,
	  172,  172,  172,  173,  173,  173,  173,  157,
	  174,  174,  174,  191,  158,  158,  175,  176,
	  189,  189,  189,  189,  190,  190,  190,  190,
	  191,  191,  191,  191,  176,  176,  176,  176,
	  177,  177,  206,  206,  161,  178,  178,  207,
	  207,  162,  162,  179,  179,  192,  163,  180,
	  177,  177,  206,  206,  161,  178,  178,  207,
	  207,  162,  162,  179,  179,  192,  163,  180,
	  193,  193,  194,  194,  194,  194,  178,  195,
	  195,  195,  162,  179,  196,  196,  196,  180,
	  193,  193,  194,  194,  194,  194,  165,  195,
	  195,  195,  166,  196,  196,  196,  167,  180,
	  164,  164,  194,  194,  194,  165,  182,  195,
	  195,  195,  166,  183,  196,  196,  167,  184,
	  181,  181,  194,  194,  165,  182,  182,  182,
	  195,  166,  166,  183,  183,  183,  184,  184,
	  181,  181,  181,  165,  182,  182,  182,  182,
	  199,  166,  183,  183,  183,  183,  184,  184,
	  197,  197,  198,  198,  198,  182,  182,  199,
	  199,  199,  183,  183,  200,  200,  200,  184,
	  197,  197,  198,  198,  198,  198,  199,  199,
	  199,  199,  199,  200,  200,  200,  200,  188,
	  168,  168,  198,  198,  198,  169,  169,  199,
	  199,  199,  170,  170,  200,  200,  171,  188,
	  168,  168,  168,  169,  169,  169,  186,  186,
	  199,  170,  170,  170,  187,  187,  188,  188,
	  185,  185,  185,  202,  186,  186,  186,  186,
	  203,  170,  170,  187,  187,  187,  188,  188,
	  185,  185,  202,  202,  202,  186,  186,  203,
	  203,  203,  187,  187,  187,  204,  204,  176,
	  201,  201,  202,  202,  202,  186,  186,  203,
	  203,  203,  187,  187,  204,  204,  175,  176,
	  172,  172,  202,  173,  173,  190,  190,  203,
	  203,  174,  191,  191,  204,  175,  175,  176,
	  189,  189,  189,  189,  190,  190,  190,  190,
	  191,  191,  191,  191,  176,  176,  176,  176,
	  205,  205,  206,  206,  206,  178,  178,  207,
	  207,  207,  179,  179,  192,  192,  209,  243,
	  205,  205,  206,  206,  206,  178,  178,  207,
	  207,  207,  179,  179,  192,  192,  209,  243,
	  193,  193,  194,  194,  194,  194,  178,  195,
	  195,  195,  195,  196,  196,  196,  196,  243,
	  193,  193,  194,  194,  194,  194,  195,  195,
	  195,  195,  195,  196,  196,  196,  213,  243,
	  193,  193,  194,  194,  194,  194,  182,  195,
	  195,  195,  212,  196,  196,  196,  213,  247,
	  181,  181,  194,  194,  194,  182,  182,  195,
	  195,  195,  183,  183,  183,  196,  213,  247,
	  181,  181,  181,  198,  182,  182,  182,  182,
	  199,  199,  183,  183,  183,  183,  213,  247,
	  197,  197,  198,  198,  198,  198,  182,  199,
	  199,  199,  183,  200,  200,  200,  200,  247,
	  197,  197,  198,  198,  198,  198,  199,  199,
	  199,  199,  199,  200,  200,  200,  217,  251,
	  197,  197,  198,  198,  198,  198,  199,  199,
	  199,  199,  216,  200,  200,  200,  217,  251,
	  185,  185,  198,  198,  215,  186,  186,  186,
	  199,  216,  170,  187,  187,  217,  217,  251,
	  185,  185,  202,  202,  202,  186,  186,  203,
	  203,  203,  187,  187,  187,  204,  204,  251,
	  201,  201,  202,  202,  202,  186,  186,  203,
	  203,  203,  187,  187,  204,  204,  204,  255,
	  201,  201,  202,  202,  202,  202,  186,  203,
	  203,  203,  220,  204,  204,  204,  221,  255,
	  218,  218,  202,  219,  219,  219,  219,  203,
	  220,  220,  220,  204,  204,  221,  221,  255,
	  252,  252,  252,  252,  253,  253,  253,  253,
	  254,  254,  254,  254,  255,  255,  255,  255,
	  222,  222,  206,  206,  223,  223,  178,  207,
	  207,  208,  208,  192,  192,  209,  209,  243,
	  222,  222,  206,  206,  223,  223,  178,  207,
	  207,  208,  208,  192,  192,  209,  209,  243,
	  193,  193,  194,  194,  194,  194,  195,  195,
	  195,  212,  212,  196,  196,  196,  213,  243,
	  193,  193,  194,  194,  194,  211,  211,  195,
	  195,  212,  212,  196,  196,  213,  213,  243,
	  210,  210,  194,  194,  211,  211,  211,  195,
	  195,  212,  212,  196,  196,  213,  213,  247,
	  210,  210,  194,  211,  211,  211,  182,  195,
	  212,  212,  229,  183,  196,  213,  213,  247,
	  181,  181,  198,  211,  211,  182,  182,  199,
	  212,  212,  229,  183,  183,  213,  213,  247,
	  197,  197,  198,  198,  198,  198,  199,  199,
	  199,  199,  216,  200,  200,  200,  217,  247,
	  197,  197,  198,  198,  198,  215,  215,  199,
	  199,  216,  216,  200,  200,  217,  217,  251,
	  214,  214,  215,  215,  215,  215,  215,  199,
	  216,  216,  216,  200,  200,  217,  217,  251,
	  214,  214,  215,  215,  215,  232,  232,  216,
	  216,  216,  233,  187,  217,  217,  217,  251,
	  201,  201,  202,  202,  202,  186,  186,  203,
	  203,  203,  187,  187,  204,  204,  234,  251,
	  201,  201,  202,  202,  202,  202,  186,  203,
	  203,  203,  220,  204,  204,  204,  221,  255,
	  218,  218,  202,  219,  219,  219,  219,  203,
	  220,  220,  220,  204,  204,  221,  221,  255,
	  218,  218,  219,  219,  219,  219,  219,  220,
	  220,  220,  220,  237,  221,  221,  221,  255,
	  252,  252,  252,  252,  253,  253,  253,  253,
	  254,  254,  254,  254,  255,  255,  255,  255,
	  239,  239,  223,  223,  224,  224,  224,  208,
	  208,  225,  225,  225,  209,  209,  226,  243,
	  239,  239,  223,  223,  224,  224,  224,  208,
	  208,  225,  225,  225,  209,  209,  226,  243,
	  210,  210,  211,  211,  211,  211,  224,  195,
	  212,  212,  225,  196,  196,  213,  213,  243,
	  210,  210,  211,  211,  211,  211,  228,  212,
	  212,  212,  229,  229,  213,  213,  213,  243,
	  227,  227,  211,  211,  228,  228,  228,  212,
	  212,  229,  229,  229,  213,  213,  230,  247,
	  227,  227,  211,  211,  228,  228,  228,  212,
	  212,  229,  229,  246,  213,  213,  230,  247,
	  227,  227,  227,  228,  228,  228,  245,  212,
	  229,  229,  229,  246,  213,  213,  230,  247,
	  214,  214,  198,  215,  215,  215,  215,  199,
	  216,  216,  216,  200,  200,  217,  217,  247,
	  214,  214,  215,  215,  215,  215,  232,  216,
	  216,  216,  233,  200,  217,  217,  217,  251,
	  231,  231,  215,  215,  232,  232,  232,  216,
	  216,  233,  233,  233,  217,  217,  234,  251,
	  231,  231,  231,  232,  232,  232,  232,  216,
	  233,  233,  233,  250,  217,  217,  234,  251,
	  231,  231,  202,  232,  232,  249,  249,  203,
	  203,  233,  250,  250,  204,  234,  234,  251,
	  218,  218,  202,  219,  219,  219,  219,  203,
	  220,  220,  220,  204,  204,  221,  221,  255,
	  218,  218,  219,  219,  219,  219,  219,  220,
	  220,  220,  220,  237,  221,  221,  221,  255,
	  235,  235,  219,  219,  236,  236,  236,  220,
	  220,  237,  237,  237,  221,  221,  238,  255,
	  252,  252,  252,  252,  253,  253,  253,  253,
	  254,  254,  254,  254,  255,  255,  255,  255,
	  240,  240,  240,  240,  241,  241,  241,  241,
	  242,  242,  242,  242,  243,  243,  243,  243,
	  240,  240,  240,  240,  241,  241,  241,  241,
	  242,  242,  242,  242,  243,  243,  243,  243,
	  240,  240,  240,  240,  241,  241,  241,  241,
	  242,  242,  242,  242,  243,  243,  243,  243,
	  240,  240,  240,  240,  241,  241,  241,  241,
	  242,  242,  242,  242,  243,  243,  243,  243,
	  244,  244,  244,  244,  245,  245,  245,  245,
	  246,  246,  246,  246,  247,  247,  247,  247,
	  244,  244,  244,  244,  245,  245,  245,  245,
	  246,  246,  246,  246,  247,  247,  247,  247,
	  244,  244,  244,  244,  245,  245,  245,  245,
	  246,  246,  246,  246,  247,  247,  247,  247,
	  244,  244,  244,  244,  245,  245,  245,  245,
	  246,  246,  246,  246,  247,  247,  247,  247,
	  248,  248,  248,  248,  249,  249,  249,  249,
	  250,  250,  250,  250,  251,  251,  251,  251,
	  248,  248,  248,  248,  249,  249,  249,  249,
	  250,  250,  250,  250,  251,  251,  251,  251,
	  248,  248,  248,  248,  249,  249,  249,  249,
	  250,  250,  250,  250,  251,  251,  251,  251,
	  248,  248,  248,  248,  249,  249,  249,  249,
	  250,  250,  250,  250,  251,  251,  251,  251,
	  252,  252,  252,  252,  253,  253,  253,  253,
	  254,  254,  254,  254,  255,  255,  255,  255,
	  252,  252,  252,  252,  253,  253,  253,  253,
	  254,  254,  254,  254,  255,  255,  255,  255,
	  252,  252,  252,  252,  253,  253,  253,  253,
	  254,  254,  254,  254,  255,  255,  255,  255,
	  252,  252,  252,  252,  253,  253,  253,  253,
	  254,  254,  254,  254,  255,  255,  255,  255
};

static int rgbvmap_r[256] = {
 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
 0x00, 0x00, 0x22, 0x00, 0x00, 0x00, 0x00, 0x00,
 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
 0x00, 0x00, 0x00, 0x33, 0x00, 0x00, 0x00, 0x00,
 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44,
 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44,
 0x55, 0x55, 0x4c, 0x49, 0x55, 0x55, 0x4c, 0x49,
 0x4c, 0x4c, 0x4c, 0x49, 0x49, 0x49, 0x49, 0x49,
 0x4f, 0x66, 0x66, 0x55, 0x4f, 0x66, 0x66, 0x55,
 0x4f, 0x55, 0x55, 0x55, 0x4f, 0x4f, 0x4f, 0x4f,
 0x55, 0x55, 0x77, 0x77, 0x5d, 0x55, 0x77, 0x77,
 0x5d, 0x55, 0x5d, 0x5d, 0x5d, 0x55, 0x55, 0x55,
 0x88, 0x88, 0x88, 0x88, 0x88, 0x88, 0x88, 0x88,
 0x88, 0x88, 0x88, 0x88, 0x88, 0x88, 0x88, 0x88,
 0x99, 0x99, 0x93, 0x99, 0x99, 0x99, 0x93, 0x99,
 0x99, 0x99, 0x93, 0x93, 0x93, 0x93, 0x93, 0x99,
 0xaa, 0xaa, 0xaa, 0x9e, 0xaa, 0xaa, 0xaa, 0x9e,
 0xaa, 0xaa, 0xaa, 0x9e, 0x9e, 0x9e, 0x9e, 0x9e,
 0xaa, 0xbb, 0xbb, 0xbb, 0xaa, 0xbb, 0xbb, 0xbb,
 0xaa, 0xbb, 0xbb, 0xbb, 0xaa, 0xaa, 0xaa, 0xaa,
 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc,
 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc,
 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd,
 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd,
 0xee, 0xee, 0xee, 0xee, 0xee, 0xee, 0xee, 0xee,
 0xee, 0xee, 0xee, 0xee, 0xee, 0xee, 0xee, 0xee,
 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff
};

static int rgbvmap_g[256] = {
 0x00, 0x00, 0x00, 0x00, 0x44, 0x44, 0x44, 0x44,
 0x88, 0x88, 0x88, 0x88, 0xcc, 0xcc, 0xcc, 0xcc,
 0xdd, 0x11, 0x00, 0x00, 0x00, 0x55, 0x55, 0x4c,
 0x49, 0x99, 0x99, 0x99, 0x93, 0xdd, 0xdd, 0xdd,
 0xee, 0xee, 0x22, 0x00, 0x00, 0x00, 0x66, 0x66,
 0x55, 0x4f, 0xaa, 0xaa, 0xaa, 0x9e, 0xee, 0xee,
 0xff, 0xff, 0xff, 0x33, 0x00, 0x00, 0x00, 0x77,
 0x77, 0x5d, 0x55, 0xbb, 0xbb, 0xbb, 0xaa, 0xff,
 0x00, 0x00, 0x00, 0x44, 0x44, 0x44, 0x44, 0x88,
 0x88, 0x88, 0x88, 0xcc, 0xcc, 0xcc, 0xcc, 0x00,
 0x00, 0x00, 0x00, 0x00, 0x55, 0x55, 0x4c, 0x49,
 0x99, 0x99, 0x99, 0x93, 0xdd, 0xdd, 0xdd, 0xdd,
 0xee, 0x00, 0x00, 0x00, 0x00, 0x66, 0x66, 0x55,
 0x4f, 0xaa, 0xaa, 0xaa, 0x9e, 0xee, 0xee, 0xee,
 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x77, 0x77,
 0x5d, 0x55, 0xbb, 0xbb, 0xbb, 0xaa, 0xff, 0xff,
 0x00, 0x00, 0x44, 0x44, 0x44, 0x44, 0x88, 0x88,
 0x88, 0x88, 0xcc, 0xcc, 0xcc, 0xcc, 0x00, 0x00,
 0x00, 0x00, 0x00, 0x4c, 0x4c, 0x4c, 0x49, 0x99,
 0x99, 0x99, 0x93, 0xdd, 0xdd, 0xdd, 0xdd, 0x00,
 0x00, 0x00, 0x00, 0x00, 0x55, 0x55, 0x55, 0x4f,
 0xaa, 0xaa, 0xaa, 0x9e, 0xee, 0xee, 0xee, 0xee,
 0xff, 0x00, 0x00, 0x00, 0x00, 0x5d, 0x5d, 0x5d,
 0x55, 0xbb, 0xbb, 0xbb, 0xaa, 0xff, 0xff, 0xff,
 0x00, 0x44, 0x44, 0x44, 0x44, 0x88, 0x88, 0x88,
 0x88, 0xcc, 0xcc, 0xcc, 0xcc, 0x00, 0x00, 0x00,
 0x00, 0x00, 0x49, 0x49, 0x49, 0x49, 0x93, 0x93,
 0x93, 0x93, 0xdd, 0xdd, 0xdd, 0xdd, 0x00, 0x00,
 0x00, 0x00, 0x00, 0x4f, 0x4f, 0x4f, 0x4f, 0x9e,
 0x9e, 0x9e, 0x9e, 0xee, 0xee, 0xee, 0xee, 0x00,
 0x00, 0x00, 0x00, 0x00, 0x55, 0x55, 0x55, 0x55,
 0xaa, 0xaa, 0xaa, 0xaa, 0xff, 0xff, 0xff, 0xff
};


static int rgbvmap_b[256] = {
 0x00, 0x44, 0x88, 0xcc, 0x00, 0x44, 0x88, 0xcc,
 0x00, 0x44, 0x88, 0xcc, 0x00, 0x44, 0x88, 0xcc,
 0xdd, 0x11, 0x55, 0x99, 0xdd, 0x00, 0x55, 0x99,
 0xdd, 0x00, 0x4c, 0x99, 0xdd, 0x00, 0x49, 0x93,
 0x9e, 0xee, 0x22, 0x66, 0xaa, 0xee, 0x00, 0x66,
 0xaa, 0xee, 0x00, 0x55, 0xaa, 0xee, 0x00, 0x4f,
 0x55, 0xaa, 0xff, 0x33, 0x77, 0xbb, 0xff, 0x00,
 0x77, 0xbb, 0xff, 0x00, 0x5d, 0xbb, 0xff, 0x00,
 0x44, 0x88, 0xcc, 0x00, 0x44, 0x88, 0xcc, 0x00,
 0x44, 0x88, 0xcc, 0x00, 0x44, 0x88, 0xcc, 0x00,
 0x00, 0x55, 0x99, 0xdd, 0x00, 0x55, 0x99, 0xdd,
 0x00, 0x4c, 0x99, 0xdd, 0x00, 0x49, 0x93, 0xdd,
 0xee, 0x00, 0x66, 0xaa, 0xee, 0x00, 0x66, 0xaa,
 0xee, 0x00, 0x55, 0xaa, 0xee, 0x00, 0x4f, 0x9e,
 0xaa, 0xff, 0x00, 0x77, 0xbb, 0xff, 0x00, 0x77,
 0xbb, 0xff, 0x00, 0x5d, 0xbb, 0xff, 0x00, 0x55,
 0x88, 0xcc, 0x00, 0x44, 0x88, 0xcc, 0x00, 0x44,
 0x88, 0xcc, 0x00, 0x44, 0x88, 0xcc, 0x00, 0x44,
 0x4c, 0x99, 0xdd, 0x00, 0x4c, 0x99, 0xdd, 0x00,
 0x4c, 0x99, 0xdd, 0x00, 0x49, 0x93, 0xdd, 0x00,
 0x00, 0x55, 0xaa, 0xee, 0x00, 0x55, 0xaa, 0xee,
 0x00, 0x55, 0xaa, 0xee, 0x00, 0x4f, 0x9e, 0xee,
 0xff, 0x00, 0x5d, 0xbb, 0xff, 0x00, 0x5d, 0xbb,
 0xff, 0x00, 0x5d, 0xbb, 0xff, 0x00, 0x55, 0xaa,
 0xcc, 0x00, 0x44, 0x88, 0xcc, 0x00, 0x44, 0x88,
 0xcc, 0x00, 0x44, 0x88, 0xcc, 0x00, 0x44, 0x88,
 0x93, 0xdd, 0x00, 0x49, 0x93, 0xdd, 0x00, 0x49,
 0x93, 0xdd, 0x00, 0x49, 0x93, 0xdd, 0x00, 0x49,
 0x4f, 0x9e, 0xee, 0x00, 0x4f, 0x9e, 0xee, 0x00,
 0x4f, 0x9e, 0xee, 0x00, 0x4f, 0x9e, 0xee, 0x00,
 0x00, 0x55, 0xaa, 0xff, 0x00, 0x55, 0xaa, 0xff,
 0x00, 0x55, 0xaa, 0xff, 0x00, 0x55, 0xaa, 0xff
};

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.