Beispiel #1
0
 def 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.polygonRGBA(
             self._renderer, X, Y, N, *Color(color)))
Beispiel #2
0
 def raw_poly_border(self, poly, width=1.0, color=None):
     # TODO: draw thick lines
     N = len(poly)
     X, Y = self._get_poly_xy(poly)
     self._no_error(
         gfx.polygonRGBA(
             self._renderer, X, Y, N, *Color(color)))
Beispiel #3
0
 def raw_poly_solid(self, poly, color):
     N = len(poly)
     X, Y = self._get_poly_xy(poly)
     color = Color(color)
     self._no_error(
         gfx.polygonRGBA(
             self._renderer, X, Y, N, *color))
     self._no_error(
         gfx.filledPolygonRGBA(
             self._renderer, X, Y, N, *color))
Beispiel #4
0
 def 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.polygonRGBA(self._renderer, X, Y, N, *Color(color)))
Beispiel #5
0
 def raw_poly_solid(self, poly, color):
     N = len(poly)
     X, Y = self._get_poly_xy(poly)
     color = Color(color)
     self._no_error(gfx.polygonRGBA(self._renderer, X, Y, N, *color))
     self._no_error(gfx.filledPolygonRGBA(self._renderer, X, Y, N, *color))
Beispiel #6
0
 def raw_poly_border(self, poly, width=1.0, color=None):
     # TODO: draw thick lines
     N = len(poly)
     X, Y = self._get_poly_xy(poly)
     self._no_error(gfx.polygonRGBA(self._renderer, X, Y, N, *Color(color)))