Пример #1
0
 def bezier(self):
     if self.guess_continuity:
         self.path.guess_continuity()
     if self.path.len > 0:
         if self.compound_path is not None:
             self.compound_path.append(self.path)
         else:
             GenericLoader.bezier(self, paths=(self.path,))
     self.path = CreatePath()
Пример #2
0
 def bezier(self):
     if self.guess_continuity:
         self.path.guess_continuity()
     if self.path.len > 0:
         if self.compound_path is not None:
             self.compound_path.append(self.path)
         else:
             GenericLoader.bezier(self, paths=(self.path, ))
     self.path = CreatePath()
Пример #3
0
 def end_compound_path(self):
     paths = tuple(self.compound_path)
     self.compound_path = None
     if paths:
         # XXX ugly
         if self.gradient_geo:
             rect = paths[0].accurate_rect()
             for path in paths[1:]:
                 rect = UnionRects(rect, path.accurate_rect())
             self.gradient_rect = rect
         else:
             self.gradient_rect = None
         getattr(self, self.compound_render)()
         GenericLoader.bezier(self, paths=paths)
Пример #4
0
 def end_compound_path(self):
     paths = tuple(self.compound_path)
     self.compound_path = None
     if paths:
         # XXX ugly
         if self.gradient_geo:
             rect = paths[0].accurate_rect()
             for path in paths[1:]:
                 rect = UnionRects(rect, path.accurate_rect())
             self.gradient_rect = rect
         else:
             self.gradient_rect = None
         getattr(self, self.compound_render)()
         GenericLoader.bezier(self, paths=paths)