Thanks! #lang racket (require 2htdp/image 2htdp/universe racket/draw)
(define (make-frame t) (crop 300 102 980 422 (read-bitmap (format "~a.png" (add1 (modulo t 13)))))) (animate make-frame) Works like a charm! []'s Rodolfo Carvalho On Sat, Jun 4, 2011 at 19:23, Robby Findler <ro...@eecs.northwestern.edu>wrote: > 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 <rhcarva...@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 > > >
_________________________________________________ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users