whalesong/examples/expanding-circle.rkt
2011-07-21 15:20:59 -04:00

23 lines
324 B
Racket

#lang planet dyoo/whalesong
(require (planet dyoo/whalesong/world))
(define handler (on-tick add1 1))
handler
"big bang should follow:"
(define (draw w)
(circle w 'solid 'blue))
(big-bang 1
(on-tick add1 1/28)
(stop-when (lambda (w) (> w 500)))
(to-draw draw)
)
"all done"