Fixed animate example
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
; animate
|
||||
|
||||
(
|
||||
(ronin animate)
|
||||
(def t (sin (div (time) 100)))
|
||||
(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")
|
||||
(def pos (add 200 (mul 30 t)))
|
||||
(defn square (a) (rect a a a a))
|
||||
(stroke (square pos) 1 "red")
|
||||
|
||||
(start)
|
||||
)
|
||||
Reference in New Issue
Block a user