Improving examples

This commit is contained in:
Devine Lu Linvega 2019-07-22 15:07:29 +09:00
parent 7e99df545e
commit a3ae0177e2
3 changed files with 5 additions and 1 deletions

View File

@ -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
() ()

View File

@ -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})