diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2019-06-04 15:39:17 +0200 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2019-06-04 15:39:17 +0200 |
commit | ba6b58b0e27ad23404335f3f6927eb5b5fa23848 (patch) | |
tree | 5abbba7429efd6a543eb9bfbb7ef7637687024c1 | |
parent | dc59eecd6c7dfba4f5ad80d37cb10abd444fec30 (diff) |
pict: hline: Add docstring.
* pict.scm (hline): Add docstring.
-rw-r--r-- | pict.scm | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -546,9 +546,13 @@ the line color and line thickness." ,(number->string stroke-width)))))))))) (define* (hline w h - #:key - (color "black") - (stroke-width 1)) + #:key + (color "black") + (stroke-width 1)) + "Return a horizontal line segment of width W. The bounding box +height is H and the line is drawn in the vertical center of the +bounding box. The keys COLOR (a string) and STROKE-WIDTH (a number) +are accepted to override the line color and line thickness." (let ((vcenter (exact->inexact (/ h 2)))) (line 0 vcenter w vcenter w h #:color color #:stroke-width stroke-width))) |