title: "Beveled" Shapes with cocos2d
body: <p>I would like to draw 2d shapes like this in an iPhone app:</p>
  
  <p><a href="http://www.shaggyfrog.com/junk/beveled-circle.jpg" rel="nofollow noreferrer">alt text http://www.shaggyfrog.com/junk/beveled-circle.jpg</a></p>
  
  <p>I asked a similar question <a href="https://stackoverflow.com/questions/2135843/beveled-shapes-in-quartz-2d">here</a> to see if I could do it easily with Quartz, but didn't get a solution. So I got to thinking that I might be able to leverage an exsiting 2d library out there, and then I thought of cocos2d.</p>
  
  <p>The goal is to draw these kinds of beveled shapes dynamically, i.e., using arbitrary colours, and possibly with the highlight/bevel drawn at an arbitrary position.</p>
  
  <p>Is this possible with cocos2d?</p>