add random example script
This commit is contained in:
20
examples/random.lisp
Normal file
20
examples/random.lisp
Normal file
@@ -0,0 +1,20 @@
|
||||
; random
|
||||
|
||||
(
|
||||
(clear)
|
||||
|
||||
(defn place
|
||||
(rec)
|
||||
(if (gt rec 0)
|
||||
((draw "../static/crystal.jpg"
|
||||
(rect
|
||||
(random 200)
|
||||
(random 200)
|
||||
(random 200)
|
||||
(random 200))
|
||||
(lambda () (place (sub rec 1)))
|
||||
)))
|
||||
)
|
||||
|
||||
(place 30)
|
||||
)
|
||||
Reference in New Issue
Block a user