1.1 --- a/lemon/color.h Sun Jul 13 16:46:56 2008 +0100
1.2 +++ b/lemon/color.h Sun Jul 13 19:51:02 2008 +0100
1.3 @@ -1,6 +1,6 @@
1.4 -/* -*- C++ -*-
1.5 +/* -*- mode: C++; indent-tabs-mode: nil; -*-
1.6 *
1.7 - * This file is a part of LEMON, a generic C++ optimization library
1.8 + * This file is a part of LEMON, a generic C++ optimization library.
1.9 *
1.10 * Copyright (C) 2003-2008
1.11 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
1.12 @@ -62,7 +62,7 @@
1.13 };
1.14
1.15 /// White color constant
1.16 - extern const Color WHITE;
1.17 + extern const Color WHITE;
1.18 /// Black color constant
1.19 extern const Color BLACK;
1.20 /// Red color constant
1.21 @@ -130,14 +130,14 @@
1.22 colors.push_back(Color(1,1,0));
1.23 colors.push_back(Color(1,0,1));
1.24 colors.push_back(Color(0,1,1));
1.25 -
1.26 +
1.27 colors.push_back(Color(.5,0,0));
1.28 colors.push_back(Color(0,.5,0));
1.29 colors.push_back(Color(0,0,.5));
1.30 colors.push_back(Color(.5,.5,0));
1.31 colors.push_back(Color(.5,0,.5));
1.32 colors.push_back(Color(0,.5,.5));
1.33 -
1.34 +
1.35 colors.push_back(Color(.5,.5,.5));
1.36 colors.push_back(Color(1,.5,.5));
1.37 colors.push_back(Color(.5,1,.5));
1.38 @@ -145,7 +145,7 @@
1.39 colors.push_back(Color(1,1,.5));
1.40 colors.push_back(Color(1,.5,1));
1.41 colors.push_back(Color(.5,1,1));
1.42 -
1.43 +
1.44 colors.push_back(Color(1,.5,0));
1.45 colors.push_back(Color(.5,1,0));
1.46 colors.push_back(Color(1,0,.5));
1.47 @@ -171,7 +171,7 @@
1.48 colors[i%colors.size()]=c;
1.49 }
1.50 ///Adds a new color to the end of the color list.
1.51 - void add(const Color &c)
1.52 + void add(const Color &c)
1.53 {
1.54 colors.push_back(c);
1.55 }
1.56 @@ -186,7 +186,7 @@
1.57
1.58 ///Returns a \ref Color which is as different from the given parameter
1.59 ///as it is possible.
1.60 - inline Color distantColor(const Color &c)
1.61 + inline Color distantColor(const Color &c)
1.62 {
1.63 return Color(c.red()<.5?1:0,c.green()<.5?1:0,c.blue()<.5?1:0);
1.64 }