[racket] Programatically loading bitmaps with 2htdp/image

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Sat Jun 4 18:23:23 EDT 2011

No, not with the 'bitmap' primitive. But if you create a bitmap%
object, I believe you can pass it to any of the 2htdp/image
primitives.

Robby

On Saturday, June 4, 2011, Rodolfo Carvalho <rhcarvalho at gmail.com> wrote:
> 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')
>
>
>
> []'sRodolfo Carvalho
>



Posted on the users mailing list.