.. currentmodule:: sdl2.sdlgfx
py-sdl2 provides bindings for SDL2_gfx, an unofficial addon library for SDL2 that contains a range of useful functions for rendering shapes, frame pacing, and SDL surface manipulation.
Note that unlike the other SDL2 modules supported by this package, SDL2_gfx is not an official part of the SDL2 project.
Table Of Contents
.. autoclass:: FPSManager
.. autofunction:: SDL_initFramerate
.. autofunction:: SDL_setFramerate
.. autofunction:: SDL_getFramerate
.. autofunction:: SDL_getFramecount
.. autofunction:: SDL_framerateDelay
.. autofunction:: pixelColor
.. autofunction:: pixelRGBA
.. autofunction:: hlineColor
.. autofunction:: hlineRGBA
.. autofunction:: vlineColor
.. autofunction:: vlineRGBA
.. autofunction:: lineColor
.. autofunction:: lineRGBA
.. autofunction:: aalineColor
.. autofunction:: aalineRGBA
.. autofunction:: thickLineColor
.. autofunction:: thickLineRGBA
.. autofunction:: rectangleColor
.. autofunction:: rectangleRGBA
.. autofunction:: roundedRectangleColor
.. autofunction:: roundedRectangleRGBA
.. autofunction:: boxColor
.. autofunction:: boxRGBA
.. autofunction:: roundedBoxColor
.. autofunction:: roundedBoxRGBA
.. autofunction:: circleColor
.. autofunction:: circleRGBA
.. autofunction:: arcColor
.. autofunction:: arcRGBA
.. autofunction:: aacircleColor
.. autofunction:: aacircleRGBA
.. autofunction:: filledCircleColor
.. autofunction:: filledCircleRGBA
.. autofunction:: ellipseColor
.. autofunction:: ellipseRGBA
.. autofunction:: aaellipseColor
.. autofunction:: aaellipseRGBA
.. autofunction:: filledEllipseColor
.. autofunction:: filledEllipseRGBA
.. autofunction:: pieColor
.. autofunction:: pieRGBA
.. autofunction:: filledPieColor
.. autofunction:: filledPieRGBA
.. autofunction:: trigonColor
.. autofunction:: trigonRGBA
.. autofunction:: aatrigonColor
.. autofunction:: aatrigonRGBA
.. autofunction:: filledTrigonColor
.. autofunction:: filledTrigonRGBA
.. autofunction:: polygonColor
.. autofunction:: polygonRGBA
.. autofunction:: aapolygonColor
.. autofunction:: aapolygonRGBA
.. autofunction:: filledPolygonColor
.. autofunction:: filledPolygonRGBA
.. autofunction:: texturedPolygon
.. autofunction:: bezierColor
.. autofunction:: bezierRGBA
.. autofunction:: gfxPrimitivesSetFont
.. autofunction:: gfxPrimitivesSetFontRotation
.. autofunction:: characterColor
.. autofunction:: characterRGBA
.. autofunction:: stringColor
.. autofunction:: stringRGBA
.. autofunction:: rotozoomSurface
.. autofunction:: rotozoomSurfaceXY
.. autofunction:: rotozoomSurfaceSize
.. autofunction:: rotozoomSurfaceSizeXY
.. autofunction:: zoomSurface
.. autofunction:: zoomSurfaceSize
.. autofunction:: shrinkSurface
.. autofunction:: rotateSurface90Degrees