Fix HSV calculation.
Add complement function.
Add tests.