[racket] Question about images in racket

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Tue Jan 15 09:51:40 EST 2013

Overlays stack images on top of each other; they are not lined up
vertically.

Try using above to put the triangle on top of the rectangle -- that will
return a new image that you can then combine with the big red square using
overlay/align.


On Mon, Jan 14, 2013 at 6:20 PM, Brandon Mick <brandon905 at yahoo.com> wrote:

> I am trying to draw a small house in Racket. It draws a house frm a
> triangle, square, and rectangle. So it consumes a number and draws the
> shapes, places, them, and forms a neat house.
>
> This is what I have so far
>
> (overlay/align "center" "bottom"
>
>                   (triangle 40  "solid" "tan")
>                   (rectangle 50 50  "solid" "blue")
>                   (square 100   "solid" "red")))
>
> I need to make the triangle (which is inside the rectangle) go on top of
> the square so it can look like a house. that's all I need to do.  this has
> been driving me nuts. What am I doing wrong?
>
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20130115/b5763ab4/attachment-0001.html>

Posted on the users mailing list.