示例#1
0
 def draw_raw_poly_border(self, poly, width, color):
     # TODO: desenhar linhas espessas
     N = len(poly)
     X, Y = self._get_poly_xy(poly)
     self._no_error(
         gfx.aapolygonRGBA(
             self._renderer, X, Y, N, *Color(color)))
示例#2
0
 def draw_raw_poly_solid(self, poly, color):
     N = len(poly)
     X, Y = self._get_poly_xy(poly)
     color = Color(color)
     self._no_error(
         gfx.aapolygonRGBA(
             self._renderer, X, Y, N, *color))
     self._no_error(
         gfx.filledPolygonRGBA(
             self._renderer, X, Y, N, *color))
 def draw_raw_poly_border(self, poly, width, color):
     # TODO: desenhar linhas espessas
     N = len(poly)
     X, Y = self._get_poly_xy(poly)
     self._no_error(
         gfx.aapolygonRGBA(self._renderer, X, Y, N, *Color(color)))
 def draw_raw_poly_solid(self, poly, color):
     N = len(poly)
     X, Y = self._get_poly_xy(poly)
     color = Color(color)
     self._no_error(gfx.aapolygonRGBA(self._renderer, X, Y, N, *color))
     self._no_error(gfx.filledPolygonRGBA(self._renderer, X, Y, N, *color))