From: Nicolas Rechatin Date: Thu, 2 Sep 2021 11:36:16 +0000 (+0200) Subject: color range X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fnrn%2FWIP%2FIntegration_AutoColor;p=modules%2Fshaper.git color range --- diff --git a/src/ModelAPI/ModelAPI_Tools.cpp b/src/ModelAPI/ModelAPI_Tools.cpp index 5c4e6eae4..f68fc0d99 100644 --- a/src/ModelAPI/ModelAPI_Tools.cpp +++ b/src/ModelAPI/ModelAPI_Tools.cpp @@ -1185,7 +1185,7 @@ void findRandomColor(std::vector& theValues) std::vector aRGBColor; do { - aHSVColor = {rand() % 360 , rand()%(100 - 75 + 1) + 60, rand()%(100 - 60 + 1) + 75}; + aHSVColor = {rand() % 360 , rand() % (100 - 50 + 1) + 50, rand() % (100 - 50 + 1) + 50}; aRGBColor = HSVtoRGB(aHSVColor[0], aHSVColor[1], aHSVColor[2]); timeout++; } while ( diff --git a/src/ModelAPI/ModelAPI_Tools.h b/src/ModelAPI/ModelAPI_Tools.h index 2e2bbaeb4..2ae491ce8 100644 --- a/src/ModelAPI/ModelAPI_Tools.h +++ b/src/ModelAPI/ModelAPI_Tools.h @@ -50,7 +50,7 @@ MODELAPI_EXPORT std::shared_ptr shape( MODELAPI_EXPORT std::string getFeatureError(const std::shared_ptr& theFeature); /*! - * Searches for variable with name \param theName in \param theDocument. + * Searches for variable with name \param theName in \param theDocument. * If found, set it value in the \param outValue and returns true. * theSearcher must be located later in the history than the found variable. */