Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added border_radius keyword for draw.rect and drawing of one circle quadrant, fixed bounding rects #1494

Merged
merged 9 commits into from
Nov 14, 2019
6 changes: 3 additions & 3 deletions src_c/doc/draw_doc.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Auto generated file: with makeref.py . Docs go in docs/reST/ref/ . */
#define DOC_PYGAMEDRAW "pygame module for drawing shapes"
#define DOC_PYGAMEDRAWRECT "rect(surface, color, rect) -> Rect\nrect(surface, color, rect, width=0) -> Rect\ndraw a rectangle"
#define DOC_PYGAMEDRAWRECT "rect(surface, color, rect) -> Rect\nrect(surface, color, rect, width=0, border_radius=0) -> Rect\ndraw a rectangle"
#define DOC_PYGAMEDRAWPOLYGON "polygon(surface, color, points) -> Rect\npolygon(surface, color, points, width=0) -> Rect\ndraw a polygon"
#define DOC_PYGAMEDRAWCIRCLE "circle(surface, color, center, radius) -> Rect\ncircle(surface, color, center, radius, width=0) -> Rect\ndraw a circle"
#define DOC_PYGAMEDRAWELLIPSE "ellipse(surface, color, rect) -> Rect\nellipse(surface, color, rect, width=0) -> Rect\ndraw an ellipse"
Expand All @@ -20,7 +20,7 @@ pygame module for drawing shapes

pygame.draw.rect
rect(surface, color, rect) -> Rect
rect(surface, color, rect, width=0) -> Rect
rect(surface, color, rect, width=0, border-radius=0) -> Rect
MightyJosip marked this conversation as resolved.
Show resolved Hide resolved
draw a rectangle

pygame.draw.polygon
Expand Down Expand Up @@ -63,4 +63,4 @@ pygame.draw.aalines
aalines(surface, color, closed, points, blend=1) -> Rect
draw multiple contiguous straight antialiased line segments

*/
*/