title: Draw Triangle iOS
body: <p>The code below is drawing me a circle, how can I modify the existing code to draw a triangle instead?</p>
  
  <pre><code>    _colorDotLayer = [CALayer layer];
  
      CGFloat width = self.bounds.size.width-6;
      _colorDotLayer.bounds = CGRectMake(0, 0, width, width);
      _colorDotLayer.allowsGroupOpacity = YES;
      _colorDotLayer.backgroundColor = self.annotationColor.CGColor;
      _colorDotLayer.cornerRadius = width/2;
      _colorDotLayer.position = CGPointMake(self.bounds.size.width/2, self.bounds.size.height/2);
  </code></pre>