colors.hsv: simplify by just calling the generic >hsva.
parent
f342fd04d9
commit
1bbaa340b4
|
@ -70,8 +70,7 @@ M:: rgba >hsva ( rgba -- hsva )
|
|||
] if ;
|
||||
|
||||
: complimentary-color ( color -- color' )
|
||||
dup hsva? [ >hsva ] unless
|
||||
{
|
||||
>hsva {
|
||||
[ hue>> 180 + 360 mod ]
|
||||
[ saturation>> ]
|
||||
[ value>> ]
|
||||
|
|
Loading…
Reference in New Issue