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 <[email protected]> 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
>
>
____________________
  Racket Users list:
  http://lists.racket-lang.org/users

Reply via email to