1. pygame
  2. pygame
  3. pygame

Commits

pygame  committed 2ad2373

line widths

  • Participants
  • Parent commits c1697a0
  • Branches default

Comments (0)

Files changed (2)

File docs/ref/pygame_draw.html

View file
  • Ignore whitespace
 
 <a name=line><font size=+2><b>line
 </b></font><br><font size=+1><tt>
-pygame.draw.line(Surface, color, startpos, endpos) -> Rect
+pygame.draw.line(Surface, color, startpos, endpos, width=1) -> Rect
 </tt></font><ul>
 Draws a line on a surface. This will respect the clipping
 rectangle. A bounding box of the effected area is returned

File src/draw.c

View file
  • Ignore whitespace
 
 
     /*DOC*/ static char doc_line[] =
-    /*DOC*/    "pygame.draw.line(Surface, color, startpos, endpos) -> Rect\n"
+    /*DOC*/    "pygame.draw.line(Surface, color, startpos, endpos, width=1) -> Rect\n"
     /*DOC*/    "draw a line on a surface\n"
     /*DOC*/    "\n"
     /*DOC*/    "Draws a line on a surface. This will respect the clipping\n"