---
title: "init(texture:color:size:)"
framework: spritekit
role: symbol
role_heading: Initializer
path: "spritekit/skspritenode/init(texture:color:size:)"
---

# init(texture:color:size:)

Initializes a textured sprite in color using an existing texture object.

## Declaration

```swift
init(texture: SKTexture?, color: UIColor, size: CGSize)
```

```swift
init(texture: SKTexture?, color: NSColor, size: CGSize)
```

## Parameters

- `texture`: A texture to apply to the sprite.
- `color`: The color for the new sprite.
- `size`: The size for the new sprite.

## Return Value

Return Value A newly initialized sprite object.

## Discussion

Discussion To colorize your texture, you also need to set the colorBlendFactor property of the sprite.

## See Also

### Creating a Sprite from a Texture

- [init(texture:)](spritekit/skspritenode/init(texture:).md)
- [init(texture:size:)](spritekit/skspritenode/init(texture:size:).md)
- [init(texture:normalMap:)](spritekit/skspritenode/init(texture:normalmap:).md)
- [texture](spritekit/skspritenode/texture.md)
