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.

AppGameKit Classic Chat / [Code] Draw Polygon

Author
Message
swissolo
14
Years of Service
User Offline
Joined: 9th Jan 2010
Location:
Posted: 27th Mar 2014 19:19 Edited at: 28th Mar 2014 19:56
Polygons!


It may not be efficient, but it sure is pretty The code draws any enclosed polygon using drawLine. There are certainly many possibilities, but for the time being I kept it simple (for instance if you play with how bounds are selected the polygon won't be drawn outside this region. Currently that will never be the case) I put it together for one of my other threads but figured I mind as well share it independently. Perhaps it'll be of some use to someone! Have fun drawing things

Teh Codez:


Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-11-25 03:52:07
Your offset time is: 2024-11-25 03:52:07