def draw(self):
# Set drawing attributes
ui.set_color(self._color)
ui.set_shadow(*self._shadow)
# Calculations
scale_x = self.width / self._pathsize[0]
scale_y = self.height / self._pathsize[0]
# Scale the path
new_path = ui2.path_helpers.scale_path(self._path, (scale_x, scale_y))
new_path.fill()
评论列表
文章目录