Contents

SKSpriteNode

An image or solid color.

Declaration

class SKSpriteNode

Mentioned in

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

Creating a Sprite from a Texture

Creating a Solid-Color Sprite

Initializing a Sprite from an Archive

Setting a Sprite’s Size and Position

Scaling a Sprite in Nine Parts

Tinting a Sprite

Configuring Alpha Blendling

Lighting a Sprite

Adding a Custom Shader to a Sprite

Animating a Sprite by Changing its Texture

Instance Properties

See Also

Nodes that Draw