Exemplo n.º 1
0
 def gl(self, colors):
     self.gradient = sk_model.MultiGradient(colors)
Exemplo n.º 2
0
 def pgl(self, dx, dy, border=0):
     if not self.gradient:
         self.gradient = sk_model.MultiGradient()
     self.pattern = sk_model.LinearGradient(self.gradient,
                                            sk_model.Point(dx, dy), border)
Exemplo n.º 3
0
 def pgc(self, cx, cy, dx, dy):
     if not self.gradient:
         self.gradient = sk_model.MultiGradient()
     self.pattern = sk_model.ConicalGradient(self.gradient,
                                             sk_model.Point(cx, cy),
                                             sk_model.Point(dx, dy))