SDL_gfx primitives drawing module
Draws an anti-aliased circular shape on a surface.
Draws a anti-aliased circular shape on a surface with a fixed line width of 1px. The x, y point denotes the center of the circle.
Draws an anti-aliased elliptical shape on a surface.
Draws an anti-aliased elliptical shape on a surface with a fixed line width of 1px. The x, y tuple denotes the center of the ellipse, rx, ry the radius for the x- and y-axis.
Draws an anti-aliased polygonal shape on a surface.
Draws an anti-aliased polygonal shape on a surface with an fixed line width of 1px.
Draws an anti-aliased triangular shape on a surface.
Draws an anti-aliased triangular shape on a surface with an fixed line width of 1px. The three x, y points denote the edges of the triangle.
Draws an elliptical arc on a surface.
Draws an elliptical arc on a surface. The startangle and stopangle arguments are the initial and final angle in degrees.
Draws a bezier curve on a surface.
Draws a bezier curve through the given points on a surface. steps denotes the amount of steps to perform for interpolating the curve.
Draws a filled rectangular shape on a surface.
Draws a filled rectangular shape on a surface.
Draws a circular shape on a surface.
Draws a circular shape on a surface with a fixed line width of 1px. The x, y point denotes the center of the circle.
Draws an elliptical shape on a surface.
Draws an elliptical shape on a surface with a fixed line width of 1px. The x, y point denotes the center of the ellipse, rx, ry the radius for the x- and y-axis.
Draws a filled circular shape on a surface.
Draws a filled circular shape on a surface. The x, y point denotes the center of the circle.
Draws a filled elliptical shape on a surface.
Draws a filled elliptical shape on a surface. The x, y point denotes the center of the ellipse, rx, ry the radius for the x- and y-axis.
Draws a filled pie-like shape on a surface.
Draws a filled pie-like shape on a surface. The x, y point denotes the center of the pie segment, startangle and stopangle the initial and final angle in degrees.
Draws a filled polygonal shape on a surface.
Draws a filled polygonal shape on a surface.
Draws a filled triangular shape on a surface.
Draws a filled triangular shape on a surface. The three x, y points denote the edges of the triangle.
Draws a horizontal line on a surface.
Draws a horizontal line on a surface with the fixed width of 1 px. x1 and x2 denote the start and end position on the x-axis, y the vertical position of the line on the y-axis.
Draws a line on a surface.
Draws a line on a surface with a fixed width of 1px. x1, y1 and x2, y2 denote the start and end position of the line.
Draws a pie-like shape on a surface.
Draws a pie-like shape on a surface with a fixed width of 1px. The x, y point denotes the center of the pie segment, startangle and stopangle the initial and final angle in degrees.
Draws a single pixel on a surface.
Draws a single pixel on a surface.
Draws a polygonal shape on a surface.
Draws a polygonal shape on a surface.
Draws a rectangular shape on a surface.
Draws a rectangular shape on a surface.
Draws a textured polygonal shape on a surface.
Draws a textured polygonal shape on a surface. texture is a pygame2.sdl.video.Surface to be used for filling the shape, tx, ty are the offset of the texture relative to the screen.
Draws a triangular shape on a surface.
Draws a filled triangular shape on a surface with a fixed line width of 1px. The three x, y points denote the edges of the triangle.
Draws a vertical line on a surface.
Draws a vertical line on a surface with a fixed width of 1px. y1 and y2 denote the start and end position on the y-axis, x the horizontal position of the line on the x-axis.