Thanks!<div><br></div><div><div><div>#lang racket</div><div>(require 2htdp/image 2htdp/universe racket/draw)</div><div><br></div><div>(define (make-frame t)</div><div> (crop 300 102 980 422 (read-bitmap (format "~a.png" (add1 (modulo t 13))))))</div>
<div><br></div><div>(animate make-frame)</div></div><div><br></div><div><br></div><div><br></div><div>Works like a charm!</div><div><br></div><div>[]'s</div><div><br></div>Rodolfo Carvalho<br>
<br><br><div class="gmail_quote">On Sat, Jun 4, 2011 at 19:23, Robby Findler <span dir="ltr"><<a href="mailto:robby@eecs.northwestern.edu">robby@eecs.northwestern.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
No, not with the 'bitmap' primitive. But if you create a bitmap%<br>
object, I believe you can pass it to any of the 2htdp/image<br>
primitives.<br>
<font color="#888888"><br>
Robby<br>
</font><div><div></div><div class="h5"><br>
On Saturday, June 4, 2011, Rodolfo Carvalho <<a href="mailto:rhcarvalho@gmail.com">rhcarvalho@gmail.com</a>> wrote:<br>
> Is there a way to do something like this:<br>
> (define (make-frame t) (bitmap (format "~a.png" (add1 (modulo t 13)))))<br>
> (animate make-frame)<br>
><br>
><br>
><br>
><br>
> This code gives me:<br>
> bitmap: expected the argument to specify a local path (via a string) or a module path (e.g. `icons/b-run.png')<br>
><br>
><br>
><br>
> []'sRodolfo Carvalho<br>
><br>
</div></div></blockquote></div><br></div>