def assertColorTransformHSL(self, r, g, b, eh, es, ev, a=1.0): (h, s, v, a2) = fract4dc.rgb_to_hsl(r, g, b, a) self.assertEqual((h, s, v, a), (eh, es, ev, a2)) (r2, g2, b2, a3) = fract4dc.hsl_to_rgb(eh, es, ev, a) self.assertEqual((r2, g2, b2, a3), (r, g, b, a))
def assertColorTransformHSL(self,r,g,b,eh,es,ev,a=1.0): (h,s,v,a2) = fract4dc.rgb_to_hsl(r,g,b,a) self.assertEqual((h,s,v,a),(eh,es,ev,a2)) (r2,g2,b2,a3) = fract4dc.hsl_to_rgb(eh,es,ev,a) self.assertEqual((r2,g2,b2,a3),(r,g,b,a))