An easy to use AS3 shape drawing class, gear, cogs, wedge, arc, star, burst

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…







Click to download free source code

Posted

in

,

by

Tags: