Contents

SKShapeNode

A mathematical shape that can be stroked or filled.

Declaration

class SKShapeNode

Mentioned in

Overview

SKShapeNode allows you to create onscreen graphical elements from mathematical points, lines, and curves. The advantage this has over rasterized graphics, such as those displayed by textures, is that shapes are rasterized dynamically at runtime to produce crisp detail and smoother edges.

Topics

First Steps

Creating a Shape from a Path

Creating a Shape from a Rectangle

Creating a Circle Shape

Creating an Ellipse Shape

Creating a Shape from an Array of Points

Filling a Shape

Stroking a Shape

Configuring Alpha Blending

Controlling or Animating Sroke Length

Customizing Stroking or Fill Drawing

Instance Properties

Initializers

See Also

Nodes that Draw