Exemplo n.º 1
0
 def init_colors(self):
     VMobject.init_colors(self)
     self.axes.set_stroke(self.axes_color, self.stroke_width)
     self.main_lines.set_stroke(self.color, self.stroke_width)
     self.secondary_lines.set_stroke(self.secondary_color,
                                     self.secondary_stroke_width)
     return self
Exemplo n.º 2
0
 def init_colors(self):
     VMobject.init_colors(self)
     self.axes.set_stroke(self.axes_color, self.stroke_width)
     self.main_lines.set_stroke(self.color, self.stroke_width)
     self.secondary_lines.set_stroke(
         self.secondary_color, self.secondary_stroke_width
     )
     return self
Exemplo n.º 3
0
 def init_colors(self):
     VMobject.init_colors(self)
     internal_pis = [
         pi for pi in self.submobject_family()
         if isinstance(pi, PiCreature)
     ]
     random.seed(self.random_seed)
     for pi in reversed(internal_pis):
         color = random.choice(self.colors)
         pi.set_color(color)
         pi.set_stroke(color, width=0)
Exemplo n.º 4
0
 def init_colors(self):
     VMobject.init_colors(self)
     internal_pis = [
         pi
         for pi in self.submobject_family()
         if isinstance(pi, PiCreature)
     ]
     random.seed(self.random_seed)
     for pi in reversed(internal_pis):
         color = random.choice(self.colors)
         pi.highlight(color)
         pi.set_stroke(color, width = 0)
Exemplo n.º 5
0
 def init_colors(self):
     VMobject.init_colors(self)
     self.set_color_by_gradient(*self.colors)
Exemplo n.º 6
0
 def init_colors(self):
     VMobject.init_colors(self)
     self.set_color_by_gradient(*self.colors)
     for order in sorted(self.order_to_stroke_width_map.keys()):
         if self.order >= order:
             self.set_stroke(width=self.order_to_stroke_width_map[order])
Exemplo n.º 7
0
 def init_colors(self):
     VMobject.init_colors(self)
     self.gradient_highlight(*self.colors)
Exemplo n.º 8
0
 def init_colors(self):
     VMobject.init_colors(self)
     self.gradient_highlight(*self.colors)
Exemplo n.º 9
0
 def init_colors(self):
     VMobject.init_colors(self)
     self.gradient_highlight(*self.colors)
     for order in sorted(self.order_to_stroke_width_map.keys()):
         if self.order >= order:
             self.set_stroke(width = self.order_to_stroke_width_map[order])