aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/canvas-language.lisp
diff options
context:
space:
mode:
Diffstat (limited to 'src/canvas-language.lisp')
-rw-r--r--src/canvas-language.lisp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/canvas-language.lisp b/src/canvas-language.lisp
index b90e22d..1a8b12e 100644
--- a/src/canvas-language.lisp
+++ b/src/canvas-language.lisp
@@ -216,6 +216,11 @@ last points in PATH)."
(apply-pen-at x y)))
(setf *current-pen-position* (list left bottom)))
+(defun fill-region (region)
+ (with-slots (left bottom right top) region
+ (fill-rect left bottom right top)))
+
+
(defun fill-rel-rect (dx dy)
"Fills in a rectangle relative to current position."
(destructuring-bind (sx sy) *current-pen-position*