title: UIColor Made of Variables
body: <p>I'm trying to make a Swift application in iOS that has three sliders, one for each red, green, and blue.  Each time a slider is moved the current value is assigned to a variable.  My problem is that I would like to set the background color to the variables that were set.  The syntax that I'm familiar with is,</p>
  
  <pre><code>view.backgroundColor = UIColor(red: 102/255.0, green: 204/255.0, blue: 255/255.0, alpha: 1.0)
  </code></pre>
  
  <p>So what I'm trying to do in my head looks like, </p>
  
  <pre><code>view.backgroundColor = UIColor(red: returnedValueOfRedSlider/255.0, green: returnedValueOfGreenSlider/255.0, blue: returnedValueOfBlueSlider/255.0, alpha: 1.0)
  </code></pre>
  
  <p>but it has been made apparent that this is a big no no.  So what can I do to use variables to make a UIColor to assign to the backgroundColor?</p>
  
  <p>Thank you,</p>