The hue is now a float but the hsbk conversion still believed it to be an integer that could not be larger than 359. The float can in fact be, for example, 359.9 and this would cause an out-of-bounds error in the set_color call. For completeness, the initial hue is also changed to a float.