ronin/examples/animate.lisp
2019-07-17 11:17:27 +09:00

13 lines
198 B
Common Lisp

; animate
(
(def start (get ronin "animate"))
(def t (sin (div (time) 100)))
(def pos (add 200 (mul 30 t)))
(defn square (a) (rect a a a a))
(stroke (square pos) 1 "red")
(start)
)