used hsvtorgb from "code.google.com/p/sadbox/color"