run-simulation -> animate
svn: r15996
This commit is contained in:
parent
73e9e77830
commit
ff3e48c32f
|
@ -74,9 +74,12 @@
|
||||||
LOCALHOST ;; IP
|
LOCALHOST ;; IP
|
||||||
)
|
)
|
||||||
|
|
||||||
#;
|
|
||||||
(provide-higher-order-primitive
|
(provide-higher-order-primitive
|
||||||
run-simulation (create-scene) ; (Number Number Number (Nat -> Scene) -> true)
|
run-simulation (create-scene) ; (Nat -> Scene) -> Nat
|
||||||
|
)
|
||||||
|
|
||||||
|
(provide-higher-order-primitive
|
||||||
|
animate (create-scene) ; (Nat -> Scene) -> Nat
|
||||||
)
|
)
|
||||||
|
|
||||||
(define MOUSE-EVTS
|
(define MOUSE-EVTS
|
||||||
|
@ -171,6 +174,8 @@
|
||||||
(check-proc 'run-simulation f 1 "first" "one argument")
|
(check-proc 'run-simulation f 1 "first" "one argument")
|
||||||
(big-bang 1 (on-tick add1) (on-draw f)))
|
(big-bang 1 (on-tick add1) (on-draw f)))
|
||||||
|
|
||||||
|
(define animate run-simulation)
|
||||||
|
|
||||||
(define (run-movie r m*)
|
(define (run-movie r m*)
|
||||||
(check-arg 'run-movie (positive? r) "positive number" "first" r)
|
(check-arg 'run-movie (positive? r) "positive number" "first" r)
|
||||||
(check-arg 'run-movie (list? m*) "list (of images)" "second" m*)
|
(check-arg 'run-movie (list? m*) "list (of images)" "second" m*)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user