Differences

This shows you the differences between two versions of the page.

Link to this comparison view

users:shilo:extensions:shpolygon2 [2013/08/30 15:59]
shilo created
users:shilo:extensions:shpolygon2 [2013/08/30 16:01] (current)
shilo
Line 1: Line 1:
 +====== SHPolygon ======
 +---- dataentry extension ----
 +type          : extension
 +author_mail ​  : shilo86@gmail.com Shilo White
 +description ​  : A Sparrow 2.X extension for polygon shapes and polygon-shaped images.
 +lastupdate_dt : 2013-08-30
 +compatible ​   : v2.0
 +depends ​      : ​
 +tags          : polygon, shape, image, texture
 +homepage_url ​ : https://​gist.github.com/​6389843
 +download_url ​ : https://​gist.github.com/​gists/​6389843/​download
 +----
  
 +===== Usage =====
 +
 +<code objc>
 +#import "​SHPolygon.h"​
 +
 +SHPolygon *polygon = [SHPolygon polygonWithRadius:​100.0f numEdges:5 color:​0xffffff];​
 +[self addChild:​polygon];​
 +
 +SHPolygonImage *polygonImage = [SHPolygonImage polygonImageWithContentsOfFile:​@"​image.png"​ radius:​100.0f numEdges:​360];​
 +[self addChild:​polygonImage];​
 +
 +</​code>​
 +
 +===== Demo Project =====
 +[[http://​shilocity.net/​sparrow/​extensions/​shpolygondemo/​SHPolygonDemo.zip|{{http://​shilocity.net/​sparrow/​extensions/​shpolygondemo/​screenshots/​Screen%20Shot%202013-08-30%20at%206.29.55%20AM.png}}]]
 +  * Project: [[http://​shilocity.net/​sparrow/​extensions/​shpolygondemo/​SHPolygonDemo.zip|SHPolygonDemo (Universal)]]
 +  * Video: [[http://​shilocity.net/​sparrow/​extensions/​shpolygondemo/​videos/​SHPolygonDemo.mov|SHPolygonDemo.mov]]
 +  * Screenshots:​ [[http://​shilocity.net/​sparrow/​extensions/​shpolygondemo/​screenshots/​|Screenshot Archive]]
 +
 +===== Source Code =====
 +
 +%gist(6389843)%
  users/shilo/extensions/shpolygon2.txt · Last modified: 2013/08/30 16:01 by shilo
 
Powered by DokuWiki