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] Render Filled Polygon To Image

Author
Message
swissolo
14
Years of Service
User Offline
Joined: 9th Jan 2010
Location:
Posted: 20th May 2014 22:35 Edited at: 21st May 2014 00:06
I've had this sitting around and noticed I never shared it.

Renders a white polygon to an image. (uncomment one of the /////// sections to see the effect of setting various points)


Renders an image from a set of points and another (potentially tileable) image.

Once again you can uncomment the divided sections and comment out the others to see some example effects. For the second piece of code I've attached the source image I have been using. It isn't mine, but helps to test.


Attachments

Login to view attachments
IronGiant
AGK Bronze Backer
12
Years of Service
User Offline
Joined: 27th Feb 2012
Location: the great state of madness
Posted: 21st May 2014 18:16
Thanks for sharing this Swiss,

Any code people share here is greatly appreciated. Will scope it out later when I get the chance.
I collect every bit of AppGameKit code, never know what will come in as useful for a project.

Again thanks

It's Bird! , It's Plane!, No its a rocket powered Squirrel holding some acorns and a smile!

Login to post a reply

Server time is: 2024-11-25 05:46:53
Your offset time is: 2024-11-25 05:46:53