Example #1
0
 def get_conversions(self, color_details=None):
     r, g, b = color_details
     hex = rgb_to_hex([r, g, b])
     lab = lab_from_rgb((r, g, b))
     hsv = hsv_from_lab(lab)
     hsl = hsl_from_lab(lab)
     return (r, g, b, hex, lab, hsv, hsl)
Example #2
0
 def get_conversions(self, color_details=None):
     hex = rgb_to_hex(
         [color_details['r'], color_details['g'], color_details['b']])
     lab = lab_from_rgb(
         (color_details['r'], color_details['g'], color_details['b']))
     hsv = hsv_from_lab(lab)
     hsl = hsl_from_lab(lab)
     return (hex, lab, hsv, hsl)
Example #3
0
 def get_conversions(self, color_details=None):
     r, g, b = hex_to_rgb(color_details['hex'])
     lab = lab_from_rgb((r, g, b))
     hsv = hsv_from_lab(lab)
     hsl = hsl_from_lab(lab)
     return (r, g, b, lab, hsv, hsl)
 def get_conversions(self, color_details=None):
     hex = rgb_to_hex([color_details['r'], color_details['g'], color_details['b']])
     lab = lab_from_rgb((color_details['r'], color_details['g'], color_details['b']))
     hsv = hsv_from_lab(lab)
     hsl = hsl_from_lab(lab)
     return (hex, lab, hsv, hsl)