diff options
-rw-r--r-- | pict.scm | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -519,6 +519,12 @@ full transparency) and 1 (for full opacity)." #:key (color "black") (stroke-width 1)) + "Return a straight line connecting the start point described by the +numbers X1 and Y1 and the end point described by the numbers X2 and +Y2. Optionally, the numbers MAXW and MAXH can be provided to set the +width or height, respectively, of the resulting picture. The keys +COLOR (a string) and STROKE-WIDTH (a number) are accepted to override +the line color and line thickness." (make-pict `(svg (@ (width ,(max maxw (let ((new-width (+ (min x1 x2) (abs (- x2 x1))))) |