ronin/examples/animation.lisp
2019-07-15 21:42:09 +02:00

10 lines
177 B
Common Lisp

; animation
; click Project > Toggle Animation
(
(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")
)