Change HSBtoRGB function to use algorithm from Wikipedia.