From 9920cd41fe11871a835ad3f8325d779b172d2c33 Mon Sep 17 00:00:00 2001 From: Colin Okay Date: Tue, 19 Jul 2022 10:58:40 -0500 Subject: [example] fiddling with the example --- src/canvas-language.lisp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/canvas-language.lisp') 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))) -- cgit v1.2.3