Changeset 206:4e22275a2b52 in lemon for lemon/color.h
- Timestamp:
- 07/13/08 17:34:27 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/color.h
r157 r206 109 109 ///Constructor 110 110 111 ///Constructor 112 ///\param have_white indicates whether white is amongstthe111 ///Constructor. 112 ///\param have_white Indicates whether white is among the 113 113 ///provided initial colors (\c true) or not (\c false). If it is true, 114 114 ///white will be assigned to \c 0. 115 ///\param num the number of the allocated colors. If it is \c -1,115 ///\param num The number of the allocated colors. If it is \c -1, 116 116 ///the default color configuration is set up (26 color plus optionaly the 117 117 ///white). If \c num is less then 26/27 then the default color … … 154 154 colors.push_back(Color(.5,0,1)); 155 155 } while(int(colors.size())<num); 156 // colors.push_back(Color(1,1,1));157 156 if(num>=0) colors.resize(num); 158 157 } … … 172 171 colors[i%colors.size()]=c; 173 172 } 174 ///Add a new color to the end of the color list.173 ///Adds a new color to the end of the color list. 175 174 void add(const Color &c) 176 175 { … … 178 177 } 179 178 180 ///Sets the number of the exi ting colors.179 ///Sets the number of the existing colors. 181 180 void resize(int s) { colors.resize(s);} 182 181 ///Returns the number of the existing colors.
Note: See TracChangeset
for help on using the changeset viewer.