Reminder: you need the 2htdp-typed
package installed.
to-draw
not on-draw
.The last argument to a mouse handler is a Mouse-Event
but the last
argument to the key handler is just a String
.
(: draw-circle (-> Real Image))
(define (draw-circle n) (circle n "solid" "blue"))
(big-bang 5 : Number
(on-tick add1 0.2)
(to-draw draw-number 300 200))
As of this writing, the limitations I am aware of are:
stop-with
- you must use a stop-when
clause in the
big-bang
.