PDA

View Full Version : somemore help with scheme plz!


ryu12341
01-30-2005, 03:26 AM
hi guys!! im messing around with scheme and im trying to learn how to use the draw-polygon function. I was looking at the code and didn't understand one of the arguments

so, the structure of the code is:

<code>((draw-polygon viewport) pos-list posn color))</code>

i dont understand the posn-list part. could someone give me an example of what they want in the posn-list argument? i also assume that for the posn argument i could type something like (make-posn 10 10) and color i could type something like (make-rbg 0 0 1). I think I learn better when I see an example of this code used, rather than just the syntax. If anyone could help me out, I would be in their debt. thanks!!!