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