mirror of https://github.com/CGAL/cgal
Fix if condition
This commit is contained in:
parent
d73e677fc6
commit
5cebf8b8df
|
|
@ -6,7 +6,7 @@
|
|||
inline QColor generate_color(double h, double s_min = 0.35)
|
||||
{
|
||||
std::size_t s_max=255;
|
||||
if(h >0.8 && h < 0,95) //span of ugly pink, desaturates make it less garish IMO
|
||||
if(h >0.8 && h < 0.95) //span of ugly pink, desaturates make it less garish IMO
|
||||
s_max = 160;
|
||||
std::size_t s = std::rand() % (s_max-static_cast<std::size_t>(s_min*255)) +s_min*255;
|
||||
return QColor::fromHsvF(h,s/255.0,1.0);
|
||||
|
|
|
|||
Loading…
Reference in New Issue