def draw(self): if self.transform: mat = VG.get_matrix() VG.mult_matrix(self.transform) self.path.draw(self.paint_mode, style=self.style) if self.transform: VG.load_matrix(mat)
def draw(self): if self.transform: mat = VG.get_matrix() VG.mult_matrix(self.transform) if self.style: self.style.enable() for child in self.drawables: child.draw() if self.style: self.style.disable() if self.transform: VG.load_matrix(mat)
def draw(self): if self.transform: mat = VG.get_matrix() VG.mult_matrix(self.transform) if self.style: self.style.enable() for child in self.drawables: if isinstance(child, VG.Path): child.draw(self.paint_mode) else: child.draw() if self.style: self.style.disable() if self.transform: VG.load_matrix(mat)