home *** CD-ROM | disk | FTP | other *** search
/ Encyclopedia of Graphics File Formats Companion / GFF_CD.ISO / software / unix / saoimage / sao1_07.tar / defs / colormap.def < prev    next >
Text File  |  1991-05-16  |  3KB  |  98 lines

  1. #ifndef lint
  2. static char SccsDefId[] = "%W%  %G%";
  3. #endif
  4.  
  5. /* Module:    ColorMap.def
  6.  * Purpose:    Define some internal color tables
  7.  * Copyright:    Property of Smithsonian Astrophysical Observatory
  8.  *        1989 You may do anything you like with this file except
  9.  *        remove this copyright.
  10.  * Modified:    {0} Michael VanHilst    initial version          16 May 1989
  11.  *        {n} <who> -- <does what> -- <when>
  12.  */
  13.  
  14. static ColorTable gray_map = {
  15.   { 2, 0, 1.0, { 0.0, 1.0 }, { 0.0, 1.0 } },
  16.   { 2, 0, 1.0, { 0.0, 1.0 }, { 0.0, 1.0 } },
  17.   { 2, 0, 1.0, { 0.0, 1.0 }, { 0.0, 1.0 } }
  18. };
  19.  
  20. /* (black-body from Ken Clark @ Institute of Biomedical Computing
  21.     Washington University in St. Louis) */
  22. static ColorTable bbs_map = {
  23.   { 3, 0, 1.0, { 0.0, 0.5, 1.0 }, { 0.0, 1.0, 1.0 } },    /* Red */
  24.   { 4, 0, 1.0, { 0.0, 0.25, 0.75, 1.0 },        /* Green */
  25.            { 0.0, 0.0, 1.0, 1.0 } },
  26.   { 3, 0, 1.0, { 0.0, 0.5, 1.0 }, { 0.0, 0.0, 1.0 } }    /* Blue */
  27. };
  28.  
  29. static ColorTable hip_map = {
  30.   { 5, 0, 1.0, { 0.0, 0.015, 0.25, 0.50, 1.0 },
  31.            { 0.0, 0.500, 0.50, 0.75, 1.0 } },
  32.   { 6, 0, 1.0, { 0.0, 0.065, 0.125, 0.25, 0.50, 1.0 },
  33.            { 0.0, 0.000, 0.500, 0.75, 0.81, 1.0 } },
  34.   { 6, 0, 1.0, { 0.0, 0.015, 0.030, 0.065, 0.25, 1.0 },
  35.            { 0.0, 0.125, 0.375, 0.625, 0.25, 1.0 } }
  36. };
  37.  
  38. static ColorTable imp8_map = {
  39.   {  6, 0, 1.0, { 0.0000, 0.1250, 0.125, 0.5, 0.5, 1.0 },
  40.         { 0.0875, 0.0875, 0.000, 0.0, 1.0, 1.0 } },
  41.   { 16, 0, 1.0, { 0.0000, 0.1250, 0.125, 0.25, 0.25, 0.375, 0.375, 0.5,
  42.     0.5, 0.625, 0.625, 0.75, 0.75, 0.875, 0.875, 1.0 },
  43.         { 0.0875, 0.0875, 1.000, 1.00, 0.00, 0.000, 1.000, 1.0,
  44.     0.0, 0.000, 1.000, 1.00, 0.00, 0.000, 1.000, 1.0 } },
  45.   { 10, 0, 1.0,
  46.    { 0.0000, 0.1250, 0.125, 0.25, 0.25, 0.5, 0.5, 0.75, 0.75, 1.0 },
  47.    { 0.0875, 0.0875, 0.000, 0.00, 1.00, 1.0, 0.0, 0.00, 1.00, 1.0 } }
  48. };
  49.  
  50. static ColorTable a_map = {
  51.   { 4, 0, 1.0, { 0.0, 0.25, 0.5, 1.0 },
  52.            { 0.0, 0.00, 1.0, 1.0 } },
  53.   { 5, 0, 1.0, { 0.0, 0.25, 0.5, 0.77, 1.0 },
  54.            { 0.0, 1.00, 0.0, 0.00, 1.0 } },
  55.   { 6, 0, 1.0, { 0.0, 0.125, 0.5, 0.64, 0.77, 1.0 },
  56.            { 0.0, 0.000, 1.0, 0.50, 0.00, 0.0 } }
  57. };
  58.  
  59.  
  60. /* intensity progressing rainbow */
  61. static ColorTable b_map = {
  62.   { 4, 0, 1.0, { 0.0, 0.25, 0.5, 1.0 },
  63.            { 0.0, 0.0, 1.0, 1.0 } },
  64.   { 4, 0, 1.0, { 0.0, 0.5, 0.75, 1.0 },
  65.            { 0.0, 0.0, 1.0, 1.0 } },
  66.   { 5, 0, 1.0, { 0.0, 0.25, 0.5, 0.75, 1.0 },
  67.            { 0.0, 1.0, 0.0, 0.0, 1.0 } }
  68. };
  69.  
  70. #ifdef FOO
  71. static ColorTable oldb_map = {
  72.   { 4, 0, 1.0, { 0.0, 0.375, 0.5, 1.0 },
  73.            { 0.0, 0.000, 1.0, 1.0 } },
  74.   { 7, 0, 1.0, { 0.0, 0.01, 0.125, 0.25, 0.375, 0.875, 1.0 },
  75.            { 0.0, 0.00, 1.000, 1.00, 0.000, 1.000, 1.0 } },
  76.   { 6, 0, 1.0, { 0.0, 0.125, 0.25, 0.55, 0.875, 1.0 },
  77.            { 0.0, 0.000, 1.00, 1.00, 0.000, 1.0 } }
  78. };
  79.  
  80. static ColorTable c_map = {
  81.   { 7, 0, 1.0, { 0.0, 0.25, 0.375, 0.50, 0.625, 0.875, 1.00 },
  82.            { 0.0, 0.00, 0.500, 0.75, 1.000, 0.500, 0.75 } },
  83.   { 5, 0, 1.0, { 0.0, 0.005, 0.25, 0.5, 1.0 },
  84.            { 0.0, 0.000, 1.00, 0.0, 0.0 } },
  85.   { 7, 0, 1.0, { 0.0, 0.25, 0.375, 0.50, 0.625, 0.875, 1.0 },
  86.            { 0.0, 0.00, 0.500, 0.75, 1.000, 0.500, 0.0 } }
  87. };
  88.  
  89. static ColorTable d_map = {
  90.   { 6, 0, 1.0, { 0.0, 0.25, 0.375, 0.50, 0.675, 1.0 },
  91.            { 0.0, 0.00, 0.500, 0.76, 1.000, 1.0 } },
  92.   { 7, 0, 1.0, { 0.0, 0.005, 0.25, 0.5, 0.625, 0.875, 1.0 },
  93.            { 0.0, 0.000, 1.00, 0.0, 0.168, 0.500, 1.0 } },
  94.   { 8, 0, 1.0, { 0.0, 0.005, 0.250, 0.375, 0.500, 0.625, 0.875, 1.0 },
  95.            { 0.0, 0.000, 0.125, 0.250, 0.625, 1.000, 0.500, 1.0 } }
  96. };
  97. #endif
  98.