Example #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())
Example #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())
Example #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)
Example #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)
 def fillHue(self, hue, start=0, end=0):
     self.fill(ColorHSV(hue).get_color_rgb(), start, end)
 def fillHSV(self, h, s, v, start=0, end=0):
     self.fill(ColorHSV(h, s, v).get_color_rgb(), start, end)
 def setHue(self, pixel, hue):
     self.set(pixel, ColorHSV(hue).get_color_rgb())
 def setHSV(self, pixel, h, s, v):
     self.set(pixel, ColorHSV(h, s, v).get_color_rgb())