ronin/examples/projects/spire.lisp
2019-08-03 15:40:26 +09:00

16 lines
317 B
Common Lisp

; this demo shows how to use the mouse events to draw make a simple drawing tool.
;
(clear)
;
(def gradient-line
(line frame:c 0 frame:c frame:h))
;
(defn draw-circle
(e)
(
(stroke
(circle e:x e:y e:d)
(gradient gradient-line
("black" "#ffb545")))))
;
(on "mouse-move" draw-circle)