---
title: SKSpriteNode
framework: spritekit
role: symbol
role_heading: Class
path: spritekit/skspritenode
---

# SKSpriteNode

An image or solid color.

## Declaration

```swift
class SKSpriteNode
```

## Mentioned in

Getting Started with Shape Nodes Adding a Video to a Scene Animate the Warping of a Sprite Customizing the Behavior of a Node Drawing SpriteKit Content in a View Getting Started with Nodes Loading and Using Textures

## Overview

Overview SKSpriteNode is an onscreen graphical element that can be initialized from an image or a solid color. SpriteKit adds functionality to its ability to display images using the functions discussed below.

## Topics

### Creating a Sprite from an Image Filename

- [Getting Started with Sprite Nodes](spritekit/getting-started-with-sprite-nodes.md)
- [init(imageNamed:)](spritekit/skspritenode/init(imagenamed:).md)
- [init(imageNamed:normalMapped:)](spritekit/skspritenode/init(imagenamed:normalmapped:).md)

### Creating a Sprite from a Texture

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

### Creating a Solid-Color Sprite

- [init(color:size:)](spritekit/skspritenode/init(color:size:).md)

### Initializing a Sprite from an Archive

- [init(coder:)](spritekit/skspritenode/init(coder:).md)

### Setting a Sprite’s Size and Position

- [Using the Anchor Point to Move a Sprite](spritekit/using-the-anchor-point-to-move-a-sprite.md)
- [size](spritekit/skspritenode/size.md)
- [scale(to:)](spritekit/skspritenode/scale(to:).md)
- [anchorPoint](spritekit/skspritenode/anchorpoint.md)

### Scaling a Sprite in Nine Parts

- [Resizing a Sprite in Nine Parts](spritekit/resizing-a-sprite-in-nine-parts.md)
- [centerRect](spritekit/skspritenode/centerrect.md)

### Tinting a Sprite

- [Tinting a Sprite](spritekit/tinting-a-sprite.md)
- [color](spritekit/skspritenode/color.md)
- [colorBlendFactor](spritekit/skspritenode/colorblendfactor.md)

### Configuring Alpha Blendling

- [Blending a Sprite with Different Interpretations of Alpha](spritekit/blending-a-sprite-with-different-interpretations-of-alpha.md)
- [blendMode](spritekit/skspritenode/blendmode.md)
- [SKBlendMode](spritekit/skblendmode.md)

### Lighting a Sprite

- [Lighting a Sprite with Light Nodes](spritekit/lighting-a-sprite-with-light-nodes.md)
- [lightingBitMask](spritekit/skspritenode/lightingbitmask.md)
- [shadowedBitMask](spritekit/skspritenode/shadowedbitmask.md)
- [shadowCastBitMask](spritekit/skspritenode/shadowcastbitmask.md)
- [normalTexture](spritekit/skspritenode/normaltexture.md)

### Adding a Custom Shader to a Sprite

- [Applying Shaders to a Sprite](spritekit/applying-shaders-to-a-sprite.md)
- [shader](spritekit/skspritenode/shader.md)
- [attributeValues](spritekit/skspritenode/attributevalues.md)
- [setValue(_:forAttribute:)](spritekit/skspritenode/setvalue(_:forattribute:).md)
- [value(forAttributeNamed:)](spritekit/skspritenode/value(forattributenamed:).md)

### Animating a Sprite by Changing its Texture

- [Animating a Sprite by Changing its Texture](spritekit/animating-a-sprite-by-changing-its-texture.md)

### Instance Properties

- [customPlaygroundQuickLook](spritekit/skspritenode/customplaygroundquicklook.md)

## Relationships

### Inherits From

- [SKNode](spritekit/sknode.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [Copyable](swift/copyable.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)
- [NSStandardKeyBindingResponding](appkit/nsstandardkeybindingresponding.md)
- [NSTouchBarProvider](appkit/nstouchbarprovider.md)
- [NSUserActivityRestoring](appkit/nsuseractivityrestoring.md)
- [SKWarpable](spritekit/skwarpable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [UIActivityItemsConfigurationProviding](uikit/uiactivityitemsconfigurationproviding.md)
- [UICoordinateSpace](uikit/uicoordinatespace.md)
- [UIFocusEnvironment](uikit/uifocusenvironment.md)
- [UIFocusItem](uikit/uifocusitem.md)
- [UIFocusItemContainer](uikit/uifocusitemcontainer.md)
- [UIPasteConfigurationSupporting](uikit/uipasteconfigurationsupporting.md)
- [UIResponderStandardEditActions](uikit/uiresponderstandardeditactions.md)
- [UIUserActivityRestoring](uikit/uiuseractivityrestoring.md)

## See Also

### Nodes that Draw

- [Maximizing Node Drawing Performance](spritekit/maximizing-node-drawing-performance.md)
- [SKShapeNode](spritekit/skshapenode.md)
- [SKEmitterNode](spritekit/skemitternode.md)
- [SKLabelNode](spritekit/sklabelnode.md)
- [SKVideoNode](spritekit/skvideonode.md)
- [SKTileMapNode](spritekit/sktilemapnode.md)
- [SK3DNode](spritekit/sk3dnode.md)
