<!--
{
  "documentType" : "article",
  "framework" : "SpriteKit",
  "identifier" : "/documentation/SpriteKit/tinting-a-sprite",
  "metadataVersion" : "0.1.0",
  "role" : "article",
  "title" : "Tinting a Sprite"
}
-->

# Tinting a Sprite

Provide a color and blend factor to additively color your sprite.

## Discussion

You can use the [`color`](/documentation/SpriteKit/SKSpriteNode/color) and [`colorBlendFactor`](/documentation/SpriteKit/SKSpriteNode/colorBlendFactor) properties to colorize the texture applied to a sprite node. The color blend factor defaults to `0.0`, which indicates that the texture should be used unmodified. As you increase this number, more of the texture color is replaced with the blended color. For example, when a monster in your game takes damage, you might want to add a red tint to the character. The following code shows how you would apply a tint to the sprite.

```swift
monsterSprite.color = .red
monsterSprite.colorBlendFactor = 0.5
```

![Colorizing adjusts the color of the texture](images/com.apple.spritekit/media-2983062@2x.png)

You can also animate the color and color blend factors using actions. The following code shows how to briefly tint the sprite and then return it to normal.

```swift
let pulsedRed = SKAction.sequence([
    SKAction.colorize(with: .red, colorBlendFactor: 1.0, duration: 0.15),
    SKAction.wait(forDuration: 0.1),
    SKAction.colorize(withColorBlendFactor: 0.0, duration: 0.15)])
spaceship.run(pulsedRed)
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)