title: Setting custom RGB color in drawing class in Swift
body: <p>In the below simplified drawing function, I am able to set the alpha of a drawing stroke.</p>
  
  <p>I have a custom color with RGB values, for example Red = 0.25, Green = 0.5, Blue = 0.75.</p>
  
  <p>How do I set a custom RGB stroke color in the drawing function similar to setting the alpha?</p>
  
  <p>Is it also possible to set a stroke color together with setting the stroke alpha in a single statement?</p>
  
  <pre><code>override func drawRect(rect: CGRect) {
  
  strokeColor.colorWithAlphaComponent(0.5).setStroke()
  path?.stroke()
  
  }
  </code></pre>