Exemplo n.º 1
0
 def set_hue(self, pixel, hue):
     """
     Set single pixel to Hue value.
     Saturation and Value components of HSV are set to max.
     :param pixel:
     :param hue:
     :return:
     """
     self.set(pixel, ColorHSV(hue).get_color_rgb())
Exemplo n.º 2
0
 def set_hsv(self, pixel, h, s, v):
     """
     Set single pixel to HSV value
     :param pixel:
     :param h:
     :param s:
     :param v:
     :return:
     """
     self.set(pixel, ColorHSV(h, s, v).get_color_rgb())
Exemplo n.º 3
0
    def fill_hue(self, hue, start=0, end=0):
        """
        #Fill the strand (or a subset) with a single color using a Hue value.
        #Saturation and Value components of HSV are set to max.
        :param hue:
        :param start:
        :param end:
        :return:
        """

        self.fill(ColorHSV(hue).get_color_rgb(), start, end)
Exemplo n.º 4
0
 def fill_hsv(self, h, s, v, start=0, end=0):
     """
     Fill the strand (or a subset) with a single color using HSV values
     :param h:
     :param s:
     :param v:
     :param start:
     :param end:
     :return:
     """
     self.fill(ColorHSV(h, s, v).get_color_rgb(), start, end)
Exemplo n.º 5
0
 def fillHue(self, hue, start=0, end=0):
     self.fill(ColorHSV(hue).get_color_rgb(), start, end)
Exemplo n.º 6
0
 def fillHSV(self, h, s, v, start=0, end=0):
     self.fill(ColorHSV(h, s, v).get_color_rgb(), start, end)
Exemplo n.º 7
0
 def setHue(self, pixel, hue):
     self.set(pixel, ColorHSV(hue).get_color_rgb())
Exemplo n.º 8
0
 def setHSV(self, pixel, h, s, v):
     self.set(pixel, ColorHSV(h, s, v).get_color_rgb())