Skip to content

Commit

Permalink
Fix in color calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
jriegel committed Apr 13, 2014
1 parent eadc02d commit a988ead
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Mod/Fem/Gui/ViewProviderFemMeshPyImp.cpp
Expand Up @@ -44,6 +44,8 @@ App::Color calcColor(double value,double min, double max)
return App::Color (0.0,0.0,1.0);
if (value > max)
return App::Color (1.0,0.0,0.0);
if (value == 0.0)
return App::Color (0.0,1.0,0.0);
if ( value > max/2.0 )
return App::Color (1.0,1-((value-(max/2.0)) / (max/2.0)),0.0);
if ( value > 0.0 )
Expand Down

0 comments on commit a988ead

Please sign in to comment.