aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorColin Okay <colin@cicadas.surf>2022-07-19 10:58:40 -0500
committerColin Okay <colin@cicadas.surf>2022-07-19 10:58:40 -0500
commit9920cd41fe11871a835ad3f8325d779b172d2c33 (patch)
treecd311c932856f67ebc550a3c11ff41a64caca4f1 /src
parent24b0c51a3b51c52dbba855787170107a6a7e47fb (diff)
[example] fiddling with the example
Diffstat (limited to 'src')
-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 24a3394..b77ad02 100644
--- a/src/canvas-language.lisp
+++ b/src/canvas-language.lisp
@@ -27,6 +27,11 @@
(defun canvas-pen-color (r g b a)
(setf *current-pen-color* (mapcar #'colfix (list r g b a))))
+(defun canvas-pen-color-function (fn)
+ (setf *current-pen-color-function*
+ (lambda (x y)
+ (mapcar #'colfix (funcall fn x y)))))
+
(defun canvas-pen-width (n)
(setf *current-pen-width* (round n)))