Exemplo n.º 1
0
 def fadeColor(self, color, time):
   speed = speedcalc(self.lastcolor, color, time)
   if speed > 1000:
     print('# Warning, resulting speed is bigger than 1000')
     speed = 1000
   self.commands[self.time] = 'F ' + self.id + ' ' + asciicolor(color) + ' ' + str(speed)
   self.time += time
Exemplo n.º 2
0
 def setColor(self, color):
   self.commands[self.time] = 'C ' + self.id + ' ' + asciicolor(color)
   self.time += 10