Skip to content
Snippets Groups Projects
Commit cb20db95 authored by Per Hedbor's avatar Per Hedbor
Browse files

Mostly bugfixes

Rev: lib/modules/Colors.pmod:1.3
parent 96f2bfa6
No related branches found
No related tags found
No related merge requests found
......@@ -472,6 +472,8 @@ array rgb_to_hsv(array|int ri, int|void gi, int|void bi)
float h, s, v;
if(arrayp(ri)) return rgb_to_hsv(@ri);
if((ri==gi) && (gi==bi)) return ({ 0, 0, ri }); // greyscale..
r = (float)ri/255.0; g = (float)gi/255.0; b = (float)bi/255.0;
max = MAX3(r,g,b);
min = -(MAX3(-r,-g,-b));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment