Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / cannot get polygon sides to meet

Author
Message
tripleF
18
Years of Service
User Offline
Joined: 4th Jun 2006
Location:
Posted: 20th Mar 2007 10:00
Hi, i am trying to draw polygons.The problem is i cannot get the the last side drawn to meet up with the first drawn, why?
lwatson
17
Years of Service
User Offline
Joined: 17th Nov 2006
Location: Lincoln, RI USA
Posted: 20th Mar 2007 19:49 Edited at: 20th Mar 2007 19:50
Not entirely sure but I believe if you change the l<sides to read l<=sides that should do the trick for you

Or you could keep track of the first point drawn and do an implicit dbline() from the current point to the first point just outside of the loop.

Lonnie Allen Watson
rmag.blogspot.com (blog)

Login to post a reply

Server time is: 2024-10-09 02:20:02
Your offset time is: 2024-10-09 02:20:02