def gl(self, colors): self.gradient = sk_model.MultiGradient(colors)
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)
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))