drawing class
An easy to use AS3 shape drawing class, gear, cogs, wedge, arc, star, burst
Monday, April 19th, 2010 | #FreeCodeSunday, Actionscript 3 | 8 Comments
Every other Sunday i’m going to try and release some free code. Things like projects i thought had legs, got to the prototype stage but never had time to finish, or Actionscript libraries that i think other might find useful.
In this case i’m releasing my shape drawing AS3 class. This is mainly just an Actionscript 3 implementation of the hard work done by both Kevin Williams and Ric Ewing. I’ve also used a Minimal Comps Slider as well and included the slightly amended code for that which does not require the Flex SDK (makes it easier for people not familiar with it).
Any comments, suggestions, or shapes you’d like to add just comment or send me a mail.
Enjoy, Aden.
EDIT -
Sidney de Koning has done exactly what i hoped and taken this on and made some improvements. Along with some nice speed tweaks, each method now takes in a reference to a Graphics instance instead of a Sprite class, improving the performance and making it move useful.
Nice work Sid, i’ve ammended the demo below to include his class and the associated source code. His related article…
Search
Recent Posts
Categories
@AdenForshaw
- On the train back from london, sat next to a portly chap wearing double denim rocking a pungent aroma of Eu de sweaty man. #BadTimes
- Presenting new @Coull Affiliator in #Cocoon lounge bar Picadilly. Only snag is it's soft drinks only... torture!
- The old boys rockin it hard over at the #OldDuke http://twitpic.com/1mrsn2
- Strong set from #GazBrookfield over at Mr Wolfs, shame about the cider selection.
- Doing the pub quiz over at #theorchard , the questions are pretty hardcore tonight http://twitpic.com/1l1uf1