Hue in HSV is wrapped if out of range for sake of robustness
This commit is contained in:
parent
9b9e4f6681
commit
07fe590814
|
@ -180,6 +180,8 @@ public:
|
|||
(*this)[3]=255;
|
||||
return;
|
||||
}
|
||||
float dummy;
|
||||
h = modff(h,&dummy);
|
||||
if(h==1.0) h = 0.0;
|
||||
|
||||
int i = int( floor(h*6.0) );
|
||||
|
|
Loading…
Reference in New Issue