[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] imlib not drawing
From: |
Stu Glaser |
Subject: |
[Chicken-users] imlib not drawing |
Date: |
Wed, 29 Nov 2006 23:35:15 -0600 |
User-agent: |
Thunderbird 1.5.0.8 (X11/20061113) |
Hi all,
I can use the imlib2 egg to load an image and read pixel values, but I
cannot draw on the image. The following code produces an image
(test.png) which is completely gray. What am I doing wrong?
csi> (use syntax-case)
; loading /usr/lib/chicken/1/syntax-case.so ...
; loading /usr/lib/chicken/1/syntax-case-chicken-macros.scm ...
csi> (use imlib2)
; loading /usr/lib/chicken/1/imlib2.so ...
csi> (define im (imlib:create 10 10))
csi> (imlib:draw-pixel im (imlib:color/rgba 255 0 0 0) 0 0)
#f
csi> (imlib:draw-pixel im (imlib:color/rgba 255 0 0 0) 1 1)
#f
csi> (imlib:save im "test.png")
#<imlib:image>
Thanks,
-Stu
- [Chicken-users] imlib not drawing,
Stu Glaser <=