Re: [racket] Using big-bang with picts

2014-02-18 Thread Jens Axel Søgaard
Hi All, Thanks for the various suggestions. I got the animation working with picts. /Jens Axel 2014-02-17 19:50 GMT+01:00 Sean Kanaley : > (define (world->image w) > (overlay (pict->bitmap (circle w)) >(empty-scene 100 100))) > > > On Mon, Feb 17, 2014 at 1:40 PM, Jens Axel Søgaa

Re: [racket] Using big-bang with picts

2014-02-17 Thread Matthias Felleisen
Thanks, I pushed a fix -- Matthias On Feb 17, 2014, at 2:44 PM, Robby Findler wrote: > Oh, yes: that's effectively a bitmap -> image coercion. That's probably a > better thing to put than what I did in my diff. > > Robby > > > On Mon, Feb 17, 2014 at 1:41 PM, Spencer Florence > wrote: >

Re: [racket] Using big-bang with picts

2014-02-17 Thread Robby Findler
Oh, yes: that's effectively a bitmap -> image coercion. That's probably a better thing to put than what I did in my diff. Robby On Mon, Feb 17, 2014 at 1:41 PM, Spencer Florence wrote: > I've run into this before. The way we solved it was to rotate bitmaps my 0 > degrees: Its silly, but it work

Re: [racket] Using big-bang with picts

2014-02-17 Thread Spencer Florence
I've run into this before. The way we solved it was to rotate bitmaps my 0 degrees: Its silly, but it works. So (define (world->image p) (rotate (pict->bitmap p)) On Mon, Feb 17, 2014 at 2:38 PM, Robby Findler wrote: > This does look like a bug in 2htdp/universe, tho. > > Looking at the univ

Re: [racket] Using big-bang with picts

2014-02-17 Thread Robby Findler
This does look like a bug in 2htdp/universe, tho. Looking at the universe code, it is not dealing with the case that it gets a bitmap% object. 2htdp/image's image? predicate accepts those. Probably a diff something along these lines is the right fix (warning, untested!) ☕ git diff . diff --git a

Re: [racket] Using big-bang with picts

2014-02-17 Thread Sean Kanaley
(define (world->image w) (overlay (pict->bitmap (circle w)) (empty-scene 100 100))) On Mon, Feb 17, 2014 at 1:40 PM, Jens Axel Søgaard wrote: > Hi All, > > Is there a way to use big-bang with picts? > In other words, how can I convert a pict into something that big-bang > will displ

[racket] Using big-bang with picts

2014-02-17 Thread Jens Axel Søgaard
Hi All, Is there a way to use big-bang with picts? In other words, how can I convert a pict into something that big-bang will display? The attempt below fails with this error: collects/racket/private/class-internal.rkt:4387:0: send: no such method method name: copy class name: bitmap