Misc improvements
This commit is contained in:
20
examples/projects/spire.lisp
Normal file
20
examples/projects/spire.lisp
Normal file
@@ -0,0 +1,20 @@
|
||||
; 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" "#72dec2")))))
|
||||
|
||||
;
|
||||
(on "mouse-move" draw-circle)
|
||||
Reference in New Issue
Block a user