28 lines
416 B
Common Lisp
28 lines
416 B
Common Lisp
; animated recusive spiral
|
|
; click on "toggle animation"
|
|
; by @local_guru
|
|
(
|
|
(defn rec
|
|
(v)
|
|
(if (gt v 0)
|
|
((stroke
|
|
(circle
|
|
(add 300
|
|
(mul (cos (add (div v 17) (div (time) 2000)))
|
|
(div v 2)
|
|
)
|
|
)
|
|
(add 300
|
|
(mul (sin (div v 11))
|
|
(div v 2)
|
|
)
|
|
)
|
|
(div v 2))
|
|
1 "rgba(255,255,255,0.1")
|
|
(rec (sub v 0.3))
|
|
)
|
|
)
|
|
)
|
|
(rec 300)
|
|
)
|