Beispiel #1
0
 def get_median_color(self):
     mode, data = self.engine.image_data_as_rgb()
     red, green, blue = _fill.apply(mode, data)
     return "%02x%02x%02x" % (  # pylint: disable=consider-using-f-string
         red,
         green,
         blue,
     )
Beispiel #2
0
 def get_median_color(self):
     r, g, b = _fill.apply(self.engine.get_image_mode(), self.engine.get_image_data())
     return '%02x%02x%02x' % (r, g, b)
Beispiel #3
0
 def get_median_color(self):
     r, g, b = _fill.apply(self.engine.get_image_mode(), self.engine.get_image_data())
     return "%02x%02x%02x" % (r, g, b)
Beispiel #4
0
 def get_median_color(self):
     mode, data = self.engine.image_data_as_rgb()
     r, g, b = _fill.apply(mode, data)
     return '%02x%02x%02x' % (r, g, b)
Beispiel #5
0
 def get_median_color(self):
     mode, data = self.engine.image_data_as_rgb()
     r, g, b = _fill.apply(mode, data)
     return '%02x%02x%02x' % (r, g, b)
Beispiel #6
0
 def get_median_color(self):
     mode, data = self.engine.image_data_as_rgb()
     red, green, blue = _fill.apply(mode, data)
     return "%02x%02x%02x" % (red, green, blue)
Beispiel #7
0
 def get_median_color(self):
     r, g, b = _fill.apply(self.engine.get_image_mode(), self.engine.get_image_data())
     return '{:02x}{:02x}{:02x}'.format(r, g, b)
Beispiel #8
0
 def _get_rgb(self):
     if self._rgb:
         return self._rgb
     mode, data = self.image_data_as_rgb()
     self._rgb = _fill.apply(mode, data)
     return self._rgb