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
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:
>
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
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
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
(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
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
7 matches
Mail list logo