f_color2.c 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /* This file is part of the GNU plotutils package. Copyright (C) 1995,
  2. 1996, 1997, 1998, 1999, 2000, 2005, 2008, Free Software Foundation, Inc.
  3. The GNU plotutils package is free software. You may redistribute it
  4. and/or modify it under the terms of the GNU General Public License as
  5. published by the Free Software foundation; either version 2, or (at your
  6. option) any later version.
  7. The GNU plotutils package is distributed in the hope that it will be
  8. useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10. General Public License for more details.
  11. You should have received a copy of the GNU General Public License along
  12. with the GNU plotutils package; see the file COPYING. If not, write to
  13. the Free Software Foundation, Inc., 51 Franklin St., Fifth Floor,
  14. Boston, MA 02110-1301, USA. */
  15. /* Fig's 32 standard colors, taken from xfig source.
  16. The list includes the 8 standard colors (vertices of the RGB cube,
  17. listed first). It also includes three intermediate intensities for each
  18. of the 6 standard colors other than black and white (except that yellow
  19. is missing, so there are only 5, giving 15 additional shades in all).
  20. Also included are 8 random colors (LtBlue, Gold, Brown?, Pink, and
  21. Pink?, with ? = 2,3,4) apparently present because someone liked them.
  22. LtBlue is the only color in the interior of the cube. */
  23. #include "sys-defines.h"
  24. #include "extern.h"
  25. const plColor _pl_f_fig_stdcolors[FIG_NUM_STD_COLORS] =
  26. {
  27. {0x00, 0x00, 0x00}, /* Black */
  28. {0x00, 0x00, 0xff}, /* Blue */
  29. {0x00, 0xff, 0x00}, /* Green */
  30. {0x00, 0xff, 0xff}, /* Cyan */
  31. {0xff, 0x00, 0x00}, /* Red */
  32. {0xff, 0x00, 0xff}, /* Magenta */
  33. {0xff, 0xff, 0x00}, /* Yellow */
  34. {0xff, 0xff, 0xff}, /* White */
  35. {0x00, 0x00, 0x90}, /* Blue4 */
  36. {0x00, 0x00, 0xb0}, /* Blue3 */
  37. {0x00, 0x00, 0xd0}, /* Blue2 */
  38. {0x87, 0xce, 0xff}, /* LtBlue [SkyBlue1 in rgb.txt] */
  39. {0x00, 0x90, 0x00}, /* Green4 */
  40. {0x00, 0xb0, 0x00}, /* Green3 */
  41. {0x00, 0xd0, 0x00}, /* Green2 */
  42. {0x00, 0x90, 0x90}, /* Cyan4 */
  43. {0x00, 0xb0, 0xb0}, /* Cyan3 */
  44. {0x00, 0xd0, 0xd0}, /* Cyan2 */
  45. {0x90, 0x00, 0x00}, /* Red4 */
  46. {0xb0, 0x00, 0x00}, /* Red3 */
  47. {0xd0, 0x00, 0x00}, /* Red2 */
  48. {0x90, 0x00, 0x90}, /* Magenta4 */
  49. {0xb0, 0x00, 0xb0}, /* Magenta3 */
  50. {0xd0, 0x00, 0xd0}, /* Magenta2 */
  51. {0x80, 0x30, 0x00}, /* Brown4, ad hoc */
  52. {0xa0, 0x40, 0x00}, /* Brown3, ad hoc */
  53. {0xc0, 0x60, 0x00}, /* Brown2, ad hoc */
  54. {0xff, 0x80, 0x80}, /* Pink4, ad hoc */
  55. {0xff, 0xa0, 0xa0}, /* Pink3, ad hoc */
  56. {0xff, 0xc0, 0xc0}, /* Pink2, ad hoc */
  57. {0xff, 0xe0, 0xe0}, /* Pink, ad hoc */
  58. {0xff, 0xd7, 0x00} /* Gold [as in rgb.txt] */
  59. };