1 // StarPlot - A program for interactively viewing 3D maps of stellar positions. 2 // Copyright (C) 2000 Kevin B. McCarty 3 // 4 // This program is free software; you can redistribute it and/or 5 // modify it under the terms of the GNU General Public License 6 // as published by the Free Software Foundation; either version 2 7 // of the License, or (at your option) any later version. 8 // 9 // This program is distributed in the hope that it will be useful, 10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 // GNU General Public License for more details. 13 // 14 // You should have received a copy of the GNU General Public License 15 // along with this program; if not, write to the Free Software 16 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 18 19 // colors.h 20 // 21 // Define the colors you want to use here. 22 23 #ifndef _COLORS_H 24 #define _COLORS_H 25 26 typedef unsigned long color_t; 27 28 // Colors, in 0xRRGGBB format, in which to plot stars and map decals 29 30 const color_t RED_MASK = 0xFF0000, 31 GREEN_MASK = 0x00FF00, 32 BLUE_MASK = 0x0000FF; 33 34 #define RED(color) (((color) & RED_MASK) >> 16) 35 #define GREEN(color) (((color) & GREEN_MASK) >> 8) 36 #define BLUE(color) ((color) & BLUE_MASK) 37 #define DIM(color) (((color) & 0xFEFEFE) >> 1) 38 39 const color_t WOLF_RAYET_COLOR = 0x2000A0, 40 D_COLOR = 0x808080, 41 NON_STELLAR_COLOR = 0xFF00FF, 42 DEFAULT_COLOR = 0x00FF00; 43 44 const color_t CLASS_COLORS[] = { 45 0x0000FF, // O 46 0x00C0FF, // B 47 0x80E0E0, // A 48 0xF0F0F0, // F 49 0xF0F000, // G 50 0xF0A000, // K 51 0xFF2000 // M 52 }; 53 54 const color_t POSITIVE = 0x808080, 55 NEGATIVE = 0x0000FF, 56 BACKGROUND = 0x000000, 57 TEXT_COLOR = 0x00FF00, 58 LABEL_COLOR = 0xC0C0C0, 59 BOLD_COLOR = 0xFFFFFF, 60 DIM_COLOR = 0x606060, 61 ERROR_COLOR = 0xFF4040; 62 63 #endif // #ifndef _COLORS_H 64 65