Fix on-animate Example
This commit is contained in:
parent
e375668143
commit
08aba8a028
@ -1,6 +1,7 @@
|
|||||||
; this demo shows how to use the animate event to animate lines into a sine wave.
|
; this demo shows how to use the animate event to animate lines into a sine wave.
|
||||||
|
(def frame (get-frame))
|
||||||
;
|
;
|
||||||
(def seg-count 50)
|
(def seg-count 100)
|
||||||
;
|
;
|
||||||
(def seg-width
|
(def seg-width
|
||||||
(div frame:w seg-count))
|
(div frame:w seg-count))
|
||||||
@ -37,5 +38,6 @@
|
|||||||
()
|
()
|
||||||
(
|
(
|
||||||
(clear)
|
(clear)
|
||||||
(times seg-count draw-dash)))
|
(each (range 0 seg-count) draw-dash)))
|
||||||
|
;
|
||||||
(on "animate" redraw)
|
(on "animate" redraw)
|
Loading…
x
Reference in New Issue
Block a user