+ (format #f
+"~a ~a moveto
+~a\n"
+ (str4 x)
+ (str4 y)
+ s))
+
+(define (polygon points blot-diameter filled?)
+ (format #f "~a ~a ~a ~a draw_polygon"
+ (if filled? "true" "false")
+ (numbers->string4 points)
+ (number->string (- (/ (length points) 2) 1))
+ (str4 blot-diameter)))
+
+(define (repeat-slash width slope beam-thickness)
+ (define (euclidean-length x y)
+ (sqrt (+ (* x x) (* y y))))
+
+ (let ((x-width (euclidean-length beam-thickness (/ beam-thickness slope)))
+ (height (* width slope)))
+ (format #f "~a draw_repeat_slash"
+ (numbers->string4 (list x-width width height)))))
+
+
+(define (round-filled-box left right bottom top blotdiam)
+ (let* ((halfblot (/ blotdiam 2))
+ (x (- halfblot left))
+ (width (- right (+ halfblot x)))
+ (y (- halfblot bottom))
+ (height (- top (+ halfblot y))))
+ (format #f "~a draw_round_box"
+ (numbers->string4
+ (list width height x y blotdiam)))))