Exemplo n.º 1
0
 def phs(self, color, background, dx, dy, dist, width):
     self.pattern = HatchingPattern(color, background, Point(dx, dy), dist,
                                    width)
Exemplo n.º 2
0
 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))
Exemplo n.º 3
0
 def pgl(self, dx, dy, border=0):
     if not self.gradient:
         self.gradient = MultiGradient()
     self.pattern = LinearGradient(self.gradient, Point(dx, dy), border)
Exemplo n.º 4
0
 def pgr(self, dx, dy, border=0):
     if not self.gradient:
         self.gradient = MultiGradient()
     self.pattern = RadialGradient(self.gradient, Point(dx, dy), border)
Exemplo n.º 5
0
	def __init__(self):
		self.curstyle = Style()
		self.verbosity = 0
		self.gdiobjects = []
		self.dcstack = []
		self.curpoint = Point(0, 0)