Example #1
0
 def calc(self):
     self.colors = []
     if self.hue is None:
         return
     #print("Hue: "+str(self.hue))
     self.colors = [[
         self.mixer.shade(self.hue, s, v)
         for s in seq(0.0, 1.0, 1.0 / self.STEPS)
     ] for v in seq(0.0, 1.0, 1.0 / self.STEPS)]
Example #2
0
 def calc(self):
     self.colors = []
     if self.c1 is None or self.c2 is None or self.c3 is None or self.c4 is None:
         return
     left = [
         self.mixer.mix(self.c1, self.c3, q)
         for q in seq(0.0, 1.0, 1.0 / self.STEPS)
     ]
     right = [
         self.mixer.mix(self.c2, self.c4, q)
         for q in seq(0.0, 1.0, 1.0 / self.STEPS)
     ]
     for i in range(self.STEPS):
         cl = left[i]
         cr = right[i]
         self.colors.append([
             self.mixer.mix(cl, cr, q)
             for q in seq(0.0, 1.0, 1.0 / self.STEPS)
         ])
Example #3
0
 def calc(self):
     self.hues = [
         hue % 1.0 for hue in seq(self.start_hue, self.start_hue +
                                  1.0, 1.0 / self.STEPS)
     ]
     #hues = sorted(hues)
     self.colors = [
         self.mixer.shade(hue % 1.0, self.chroma, self.luma)
         for hue in self.hues
     ]
Example #4
0
 def calc(self):
     self.colors = [
         self.mixer.fromHue(h) for h in seq(0.0, 1.0, 1.0 / self.STEPS)
     ]