[plt-scheme] Image library bug?
Somewhere along the way, apparently it was decided that white pixels
in color-list->image were actually transparent, not white. I'm not
sure why that is the case, but that's why the below are not the same.
This is not documented, and I'm not sure if it shoudl be documented or
changed. I lean towards changing the documentation since htdp/image
has been in use for a long time, but does anyone remember or have
opinions one way or the other?
Robby
On Mon, Dec 7, 2009 at 4:20 PM, Jordan Johnson <jmj at fellowhuman.com> wrote:
> Hi all,
>>
>
> The following (which I hope hasn't been too badly mangled by my iPod mailer)
> evaluates to false:
>
>> (image=? (color-list->image (build-list 9 (lambda (i) (make-color 255 255
>> 255)))
>> 3 3 1 1)
>> (rectangle 3 3 "solid" (make-color 255 255 255)))
>
> Manual testing verifies that the dimensions and pinhole location are equal,
> as are the lists produced from these images via image->color-list.
>
> Any ideas?
>
> Best,
> Jordan
>
> _________________________________________________
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>