summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2019-06-04 15:39:40 +0200
committerRicardo Wurmus <rekado@elephly.net>2019-06-04 15:39:40 +0200
commit61d9638d80828890fb950692f6ce78f22e7e370c (patch)
treeabf9c6ba975b4f7e65fd4ce9854c7d7d1fb2771a
parentb206bb2a645694d576bac753a401f9757b609175 (diff)
pict: polyline: Add docstring.
* pict.scm (polyline): Add docstring.
-rw-r--r--pict.scm10
1 files changed, 6 insertions, 4 deletions
diff --git a/pict.scm b/pict.scm
index 60b7b12..85d4af1 100644
--- a/pict.scm
+++ b/pict.scm
@@ -570,10 +570,12 @@ accepted to override the line color and line thickness."
#:color color #:stroke-width stroke-width)))
(define* (polyline points
- #:key
- (color "black")
- (stroke-width 1))
- "Draw a polyline from POINTS, a list of x and y coordinate pairs."
+ #:key
+ (color "black")
+ (stroke-width 1))
+ "Draw a polyline from POINTS, a list of x and y coordinate pairs.
+The keys COLOR (a string) and STROKE-WIDTH (a number) are accepted to
+override the line color and line thickness."
(let* ((xs (map car points))
(ys (map cdr points)))
(make-pict