lemon/color.h
changeset 129 e99385bca9fe
parent 128 7cd965d2257f
child 133 d76e2ff9c70d
equal deleted inserted replaced
0:4e478cb7ad1e 1:b5ceb18b71c7
   117     ///list is cut. Otherwise the color list is filled repeatedly with
   117     ///list is cut. Otherwise the color list is filled repeatedly with
   118     ///the default color list.  (The colors can be changed later on.)
   118     ///the default color list.  (The colors can be changed later on.)
   119     ///\param have_white indicates whether white is amongst the
   119     ///\param have_white indicates whether white is amongst the
   120     ///provided color (\c true) or not (\c false). If it is true,
   120     ///provided color (\c true) or not (\c false). If it is true,
   121     ///white will be assigned to \c 0.
   121     ///white will be assigned to \c 0.
   122     Palette(int num=-1,bool have_white=false)
   122     Palette(bool have_white=false,int num=-1)
   123     {
   123     {
   124       if (num==0) return;
   124       if (num==0) return;
   125       do {
   125       do {
   126         if(have_white) colors.push_back(Color(1,1,1));
   126         if(have_white) colors.push_back(Color(1,1,1));
   127 
   127