[racket] Programatically loading bitmaps with 2htdp/image

From: Rodolfo Carvalho (rhcarvalho at gmail.com)
Date: Sat Jun 4 17:13:46 EDT 2011

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>

Posted on the users mailing list.