Improving examples
This commit is contained in:
parent
7e99df545e
commit
a3ae0177e2
@ -1,3 +1,5 @@
|
|||||||
|
; this demo shows how to use the animate event to animate lines into a sine wave.
|
||||||
|
;
|
||||||
(def seg-count 50)
|
(def seg-count 50)
|
||||||
;
|
;
|
||||||
(def frame-middle
|
(def frame-middle
|
||||||
@ -42,7 +44,7 @@
|
|||||||
(50 0
|
(50 0
|
||||||
(of
|
(of
|
||||||
(frame) :w) 0)
|
(frame) :w) 0)
|
||||||
("rgba(255,255,255,0)" "white" "#72dec2" "red")))))
|
("#ffb545" "#72dec2")))))
|
||||||
;
|
;
|
||||||
(defn redraw
|
(defn redraw
|
||||||
()
|
()
|
@ -1,3 +1,5 @@
|
|||||||
|
; this demo shows how to use the mouse events to draw make a simple drawing tool.
|
||||||
|
;
|
||||||
(clear)
|
(clear)
|
||||||
;
|
;
|
||||||
(def prev-pos {:x 0 :y 0})
|
(def prev-pos {:x 0 :y 0})
|
Loading…
x
Reference in New Issue
Block a user