title: In swift how do I change the color of a SKSpriteNode?
body: <p>I have created a game with an <code>SKSpriteNode</code> that is black and when the user touches the screen I would like for the <code>SKSpriteNode</code> to change to white. I have googled everything I can and attempted lots of different strategies with no luck. Does anyone know how to do this?</p>
  
  <p>Here's the code for my scene:</p>
  
  <pre><code>var blackBird = SKSpriteNode()
  
  override func didMoveToView(view: SKView) {
      //Black Bird
      var blackBirdTexture = SKTexture(imageNamed:"blackbird")
      blackBirdTexture.filteringMode = SKTextureFilteringMode.Nearest
  
      blackBird = SKSpriteNode(texture: blackBirdTexture)
      blackBird.setScale(0.5)
      blackBird.position = CGPoint(x: self.frame.size.width * 0.35, y:
          self.frame.size.height * 0.6)
  
      blackBird.physicsBody =
          SKPhysicsBody(circleOfRadius:blackBird.size.height/2.0)
      blackBird.physicsBody!.dynamic = true
      blackBird.physicsBody!.allowsRotation = false
  
      self.addChild(blackBird)
  }
  
  override func touchesBegan(touches: Set&lt;NSObject, withEvent event: UIEvent) {
      /* Called when a touch begins */
  
      for touch: AnyObject in touches {
      let location = touch.locationInNode(self)
  
      blackBird.color = .whiteColor()
      blackBird.colorBlendFactor = 1.0
  }
  </code></pre>