[racket] Programatically loading bitmaps with 2htdp/image
Is there a way to do something like this:
(define (make-frame t)
(bitmap (format "~a.png" (add1 (modulo t 13)))))
(animate make-frame)
This code gives me:
bitmap: expected the argument to specify a local path (via a string) or a
module path (e.g. `icons/b-run.png')
[]'s
Rodolfo Carvalho
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20110604/c0b22c73/attachment.html>