MBSim

Project Page
colors.h
00001 /* Copyright (C) 2004-2012 MBSim Development Team
00002  *
00003  * This library is free software; you can redistribute it and/or
00004  * modify it under the terms of the GNU Lesser General Public
00005  * License as published by the Free Software Foundation; either
00006  * version 2.1 of the License, or (at your option) any later version.
00007  *
00008  * This library is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011  * Lesser General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU Lesser General Public
00014  * License along with this library; if not, write to the Free Software
00015  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
00016  *
00017  * Contact: martin.o.foerg@googlemail.com
00018  */
00019 
00020 #ifndef COLORS_H_
00021 #define COLORS_H_
00022 
00023 #include <iostream>
00024 
00025 namespace MBSim {
00026 
00027 
00033   struct RGBColor {
00034       double red;
00035       double green;
00036       double blue;
00037   };
00038 
00039   extern std::ostream& operator<<(std::ostream& ofstream, const RGBColor & rgbColor);
00040 
00041   const RGBColor RED = {1, 0, 0};
00042   const RGBColor GREEN = {0, 1, 0};
00043   const RGBColor BLUE = {0, 0, 1};
00044   const RGBColor WHITE = {0, 0, 0};
00045   const RGBColor BLACK = {1, 1, 1};
00046   const RGBColor YELLOW = {1, 1, 0};
00047   const RGBColor DARKGRAY = {0.984, 0.984, 0.984};
00048   const RGBColor LIGHTGRAY = {0.827, 0.827, 0.827};
00049 }
00050 
00051 #endif /* COLORS_H_ */