def phs(self, color, background, dx, dy, dist, width): self.pattern = HatchingPattern(color, background, Point(dx, dy), dist, width)
def pgc(self, cx, cy, dx, dy): if not self.gradient: self.gradient = MultiGradient() self.pattern = ConicalGradient(self.gradient, Point(cx, cy), Point(dx, dy))
def pgl(self, dx, dy, border=0): if not self.gradient: self.gradient = MultiGradient() self.pattern = LinearGradient(self.gradient, Point(dx, dy), border)
def pgr(self, dx, dy, border=0): if not self.gradient: self.gradient = MultiGradient() self.pattern = RadialGradient(self.gradient, Point(dx, dy), border)
def __init__(self): self.curstyle = Style() self.verbosity = 0 self.gdiobjects = [] self.dcstack = [] self.curpoint = Point(0, 0)