home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / gnuplapi.zip / gnuplot-api-os2 / build / color-short.c next >
Encoding:
C/C++ Source or Header  |  2001-02-09  |  1016 b   |  50 lines

  1. /* GNUPLOT - color.c */
  2.  
  3. /*[
  4.  *
  5.  * Petr Mikulik, December 1998 -- June 1999
  6.  * Copyright: open source as much as possible
  7.  *
  8.  * 
  9.  * What is here: #defines, global variables and declaration of routines for 
  10.  * colours---required by the pm3d splotting mode and coloured filled contours
  11.  *
  12. ]*/
  13.  
  14.  
  15. /*
  16.  *
  17.  * What is here:
  18.  *   - Global variables declared in .h are initialized here
  19.  *   - Palette routines
  20.  *   - Colour box drawing
  21.  *
  22.  */
  23.  
  24.  
  25. /** NOTICE: currently, this file is included only if PM3D is defined **/
  26. #ifdef PM3D
  27.  
  28. #include "plot.h"
  29. #include "pm3d.h"
  30.    /* need to access used_pm3d_zmin, used_pm3d_zmax; */
  31.  
  32.  
  33. /* COLOUR MODES - GLOBAL VARIABLES */
  34.  
  35. t_sm_palette sm_palette = {
  36.   33, /* colorFormulae---must be changed if changed GetColorValueFromFormula() */
  37.   SMPAL_COLOR_MODE_RGB, /* colorMode */
  38.   7, 5, 15, /* formulaR, formulaG, formulaB */
  39.   SMPAL_POSITIVE, /* positive */
  40.   0, 0, 0, /* use_maxcolors, colors, rgb_table */
  41.   0, /* offset */
  42.   0 /* ps_allcF */
  43.   };
  44.  
  45.  
  46.  
  47. #endif /* PM3D */
  48.  
  49. /* eof color.c */
  50.