lemon/color.h
changeset 207 574b963d0275
parent 157 2ccc1afc2c52
child 209 765619b7cbb2
     1.1 --- a/lemon/color.h	Sat Jul 12 09:45:11 2008 +0100
     1.2 +++ b/lemon/color.h	Sun Jul 13 16:35:05 2008 +0100
     1.3 @@ -108,11 +108,11 @@
     1.4    public:
     1.5      ///Constructor
     1.6  
     1.7 -    ///Constructor 
     1.8 -    ///\param have_white indicates whether white is amongst the
     1.9 +    ///Constructor.
    1.10 +    ///\param have_white Indicates whether white is among the
    1.11      ///provided initial colors (\c true) or not (\c false). If it is true,
    1.12      ///white will be assigned to \c 0.
    1.13 -    ///\param num the number of the allocated colors. If it is \c -1,
    1.14 +    ///\param num The number of the allocated colors. If it is \c -1,
    1.15      ///the default color configuration is set up (26 color plus optionaly the
    1.16      ///white).  If \c num is less then 26/27 then the default color
    1.17      ///list is cut. Otherwise the color list is filled repeatedly with
    1.18 @@ -153,7 +153,6 @@
    1.19          colors.push_back(Color(0,.5,1));
    1.20          colors.push_back(Color(.5,0,1));
    1.21        } while(int(colors.size())<num);
    1.22 -      //    colors.push_back(Color(1,1,1));
    1.23        if(num>=0) colors.resize(num);
    1.24      }
    1.25      ///\e
    1.26 @@ -171,13 +170,13 @@
    1.27      {
    1.28        colors[i%colors.size()]=c;
    1.29      }
    1.30 -    ///Add a new color to the end of the color list.
    1.31 +    ///Adds a new color to the end of the color list.
    1.32      void add(const Color &c) 
    1.33      {
    1.34        colors.push_back(c);
    1.35      }
    1.36  
    1.37 -    ///Sets the number of the exiting colors.
    1.38 +    ///Sets the number of the existing colors.
    1.39      void resize(int s) { colors.resize(s);}
    1.40      ///Returns the number of the existing colors.
    1.41      int size() const { return int(colors.size());}